Changeset 3446753
- Timestamp:
- 01/25/2026 11:39:59 PM (2 months ago)
- Location:
- cardcrafter-data-grids
- Files:
-
- 4 added
- 4 edited
- 8 copied
-
tags/1.14.1 (copied) (copied from cardcrafter-data-grids/trunk)
-
tags/1.14.1/CHANGELOG.md (copied) (copied from cardcrafter-data-grids/trunk/CHANGELOG.md)
-
tags/1.14.1/DATABASE_PERFORMANCE_IMPACT_REPORT.md (copied) (copied from cardcrafter-data-grids/trunk/DATABASE_PERFORMANCE_IMPACT_REPORT.md)
-
tags/1.14.1/ONBOARDING_IMPACT_REPORT.md (copied) (copied from cardcrafter-data-grids/trunk/ONBOARDING_IMPACT_REPORT.md)
-
tags/1.14.1/assets/js/cardcrafter.js (modified) (1 diff)
-
tags/1.14.1/cardcrafter.php (copied) (copied from cardcrafter-data-grids/trunk/cardcrafter.php) (5 diffs)
-
tags/1.14.1/debug-ajax-endpoints.php (added)
-
tags/1.14.1/readme.txt (copied) (copied from cardcrafter-data-grids/trunk/readme.txt) (2 diffs)
-
tags/1.14.1/simple-debug.php (added)
-
tags/1.14.1/simple-syntax-check.php (copied) (copied from cardcrafter-data-grids/trunk/simple-syntax-check.php)
-
tags/1.14.1/verify-database-performance-fix.php (copied) (copied from cardcrafter-data-grids/trunk/verify-database-performance-fix.php)
-
trunk/assets/js/cardcrafter.js (modified) (1 diff)
-
trunk/cardcrafter.php (modified) (5 diffs)
-
trunk/debug-ajax-endpoints.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/simple-debug.php (added)
Legend:
- Unmodified
- Added
- Removed
-
cardcrafter-data-grids/tags/1.14.1/assets/js/cardcrafter.js
r3445263 r3446753 120 120 throw new Error('Network response was not ok: ' + response.status); 121 121 } 122 123 // Check if response is actually JSON by looking at content-type 124 var contentType = response.headers.get('content-type'); 125 if (!contentType || !contentType.includes('application/json')) { 126 // If not JSON, get text to see what we actually received 127 return response.text().then(function(text) { 128 if (text.trim().startsWith('<!DOCTYPE') || text.trim().startsWith('<html')) { 129 throw new Error('Received HTML page instead of JSON data. This usually indicates a WordPress error. Check WordPress error logs.'); 130 } else if (text.trim().startsWith('0')) { 131 throw new Error('WordPress returned "0" - check if AJAX action is registered properly.'); 132 } else { 133 throw new Error('Invalid JSON response. Received: ' + text.substring(0, 100) + '...'); 134 } 135 }); 136 } 137 122 138 return response.json(); 123 139 }) -
cardcrafter-data-grids/tags/1.14.1/cardcrafter.php
r3446752 r3446753 4 4 * Plugin URI: https://github.com/TableCrafter/cardcrafter-data-grids 5 5 * Description: Transform JSON data and WordPress posts into beautiful card grids. Perfect for teams, products, portfolios, and blogs. 6 * Version: 1.14. 06 * Version: 1.14.1 7 7 * Author: fahdi 8 8 * Author URI: https://github.com/TableCrafter … … 21 21 */ 22 22 23 define('CARDCRAFTER_VERSION', '1.14. 0');23 define('CARDCRAFTER_VERSION', '1.14.1'); 24 24 define('CARDCRAFTER_URL', plugin_dir_url(__FILE__)); 25 25 define('CARDCRAFTER_PATH', plugin_dir_path(__FILE__)); … … 565 565 566 566 // Show onboarding modal immediately for new users 567 if (currentStep === 0 ) {567 if (currentStep === 0 && $('.cc-onboarding-overlay').length) { 568 568 $('#cc-onboarding-overlay').show(); 569 569 showStep(1); … … 608 608 // Update the demo URL in the admin interface 609 609 var demoUrl = '<?php echo CARDCRAFTER_URL; ?>demo-data/' + selectedDemo + '.json'; 610 $('#cc-source-url').val(demoUrl); 611 612 // Trigger preview to generate cards 613 $('#cc-preview-btn').click(); 610 var urlInput = $('#cc-preview-url'); 611 if (urlInput.length) { 612 urlInput.val(demoUrl); 613 614 // Trigger preview to generate cards 615 var previewBtn = $('#cc-preview-btn'); 616 if (previewBtn.length) { 617 previewBtn.click(); 618 } 619 } 614 620 615 621 // Save demo preference … … 705 711 706 712 // Scroll to generated cards if they exist 707 if ($('.cardcrafter-container').length) { 708 $('html, body').animate({ 709 scrollTop: $('.cardcrafter-container').offset().top - 100 710 }, 500); 711 } 713 setTimeout(function() { 714 if ($('.cardcrafter-container').length) { 715 $('html, body').animate({ 716 scrollTop: $('.cardcrafter-container').offset().top - 100 717 }, 500); 718 } 719 }, 500); 712 720 } 713 721 }); -
cardcrafter-data-grids/tags/1.14.1/readme.txt
r3446752 r3446753 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1.14. 07 Stable tag: 1.14.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 199 199 200 200 == Changelog == 201 202 = 1.14.1 = 203 * HOTFIX: Resolved critical JavaScript error "Unexpected token '<'" preventing card loading 204 * IMPROVED: Enhanced fetch error handling with content-type validation before JSON parsing 205 * IMPROVED: Better error messages to diagnose WordPress errors vs JSON parsing issues 206 * FIXED: Onboarding modal safety checks for DOM elements that may not exist yet 207 * FIXED: Admin interface element access in onboarding system 208 * TECHNICAL: Added specific error handling for HTML responses, WordPress '0' returns, and invalid JSON 201 209 202 210 = 1.14.0 = -
cardcrafter-data-grids/trunk/assets/js/cardcrafter.js
r3445263 r3446753 120 120 throw new Error('Network response was not ok: ' + response.status); 121 121 } 122 123 // Check if response is actually JSON by looking at content-type 124 var contentType = response.headers.get('content-type'); 125 if (!contentType || !contentType.includes('application/json')) { 126 // If not JSON, get text to see what we actually received 127 return response.text().then(function(text) { 128 if (text.trim().startsWith('<!DOCTYPE') || text.trim().startsWith('<html')) { 129 throw new Error('Received HTML page instead of JSON data. This usually indicates a WordPress error. Check WordPress error logs.'); 130 } else if (text.trim().startsWith('0')) { 131 throw new Error('WordPress returned "0" - check if AJAX action is registered properly.'); 132 } else { 133 throw new Error('Invalid JSON response. Received: ' + text.substring(0, 100) + '...'); 134 } 135 }); 136 } 137 122 138 return response.json(); 123 139 }) -
cardcrafter-data-grids/trunk/cardcrafter.php
r3446752 r3446753 4 4 * Plugin URI: https://github.com/TableCrafter/cardcrafter-data-grids 5 5 * Description: Transform JSON data and WordPress posts into beautiful card grids. Perfect for teams, products, portfolios, and blogs. 6 * Version: 1.14. 06 * Version: 1.14.1 7 7 * Author: fahdi 8 8 * Author URI: https://github.com/TableCrafter … … 21 21 */ 22 22 23 define('CARDCRAFTER_VERSION', '1.14. 0');23 define('CARDCRAFTER_VERSION', '1.14.1'); 24 24 define('CARDCRAFTER_URL', plugin_dir_url(__FILE__)); 25 25 define('CARDCRAFTER_PATH', plugin_dir_path(__FILE__)); … … 565 565 566 566 // Show onboarding modal immediately for new users 567 if (currentStep === 0 ) {567 if (currentStep === 0 && $('.cc-onboarding-overlay').length) { 568 568 $('#cc-onboarding-overlay').show(); 569 569 showStep(1); … … 608 608 // Update the demo URL in the admin interface 609 609 var demoUrl = '<?php echo CARDCRAFTER_URL; ?>demo-data/' + selectedDemo + '.json'; 610 $('#cc-source-url').val(demoUrl); 611 612 // Trigger preview to generate cards 613 $('#cc-preview-btn').click(); 610 var urlInput = $('#cc-preview-url'); 611 if (urlInput.length) { 612 urlInput.val(demoUrl); 613 614 // Trigger preview to generate cards 615 var previewBtn = $('#cc-preview-btn'); 616 if (previewBtn.length) { 617 previewBtn.click(); 618 } 619 } 614 620 615 621 // Save demo preference … … 705 711 706 712 // Scroll to generated cards if they exist 707 if ($('.cardcrafter-container').length) { 708 $('html, body').animate({ 709 scrollTop: $('.cardcrafter-container').offset().top - 100 710 }, 500); 711 } 713 setTimeout(function() { 714 if ($('.cardcrafter-container').length) { 715 $('html, body').animate({ 716 scrollTop: $('.cardcrafter-container').offset().top - 100 717 }, 500); 718 } 719 }, 500); 712 720 } 713 721 }); -
cardcrafter-data-grids/trunk/readme.txt
r3446752 r3446753 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1.14. 07 Stable tag: 1.14.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 199 199 200 200 == Changelog == 201 202 = 1.14.1 = 203 * HOTFIX: Resolved critical JavaScript error "Unexpected token '<'" preventing card loading 204 * IMPROVED: Enhanced fetch error handling with content-type validation before JSON parsing 205 * IMPROVED: Better error messages to diagnose WordPress errors vs JSON parsing issues 206 * FIXED: Onboarding modal safety checks for DOM elements that may not exist yet 207 * FIXED: Admin interface element access in onboarding system 208 * TECHNICAL: Added specific error handling for HTML responses, WordPress '0' returns, and invalid JSON 201 209 202 210 = 1.14.0 =
Note: See TracChangeset
for help on using the changeset viewer.