Changeset 3414135
- Timestamp:
- 12/08/2025 10:47:28 AM (4 months ago)
- Location:
- ai-builder
- Files:
-
- 4 edited
- 48 copied
-
tags/2.3.12 (copied) (copied from ai-builder/trunk)
-
tags/2.3.12/admin/menu.php (copied) (copied from ai-builder/trunk/admin/menu.php)
-
tags/2.3.12/admin/pages/agent-chat.php (copied) (copied from ai-builder/trunk/admin/pages/agent-chat.php)
-
tags/2.3.12/admin/pages/credits.php (copied) (copied from ai-builder/trunk/admin/pages/credits.php)
-
tags/2.3.12/admin/pages/multi-page.php (copied) (copied from ai-builder/trunk/admin/pages/multi-page.php)
-
tags/2.3.12/admin/pages/settings.php (copied) (copied from ai-builder/trunk/admin/pages/settings.php)
-
tags/2.3.12/admin/pages/translation-settings.php (copied) (copied from ai-builder/trunk/admin/pages/translation-settings.php)
-
tags/2.3.12/admin/pages/tuto.php (copied) (copied from ai-builder/trunk/admin/pages/tuto.php)
-
tags/2.3.12/aibui-builder.php (copied) (copied from ai-builder/trunk/aibui-builder.php) (3 diffs)
-
tags/2.3.12/assets/css/account.css (copied) (copied from ai-builder/trunk/assets/css/account.css)
-
tags/2.3.12/assets/css/credits.css (copied) (copied from ai-builder/trunk/assets/css/credits.css)
-
tags/2.3.12/assets/css/language-switcher.css (copied) (copied from ai-builder/trunk/assets/css/language-switcher.css)
-
tags/2.3.12/assets/css/multi-page.css (copied) (copied from ai-builder/trunk/assets/css/multi-page.css)
-
tags/2.3.12/assets/css/translation.css (copied) (copied from ai-builder/trunk/assets/css/translation.css)
-
tags/2.3.12/assets/js/account.js (copied) (copied from ai-builder/trunk/assets/js/account.js)
-
tags/2.3.12/assets/js/agent-chat.js (copied) (copied from ai-builder/trunk/assets/js/agent-chat.js)
-
tags/2.3.12/assets/js/build/index.asset.php (copied) (copied from ai-builder/trunk/assets/js/build/index.asset.php)
-
tags/2.3.12/assets/js/build/index.js (copied) (copied from ai-builder/trunk/assets/js/build/index.js)
-
tags/2.3.12/assets/js/chat-widget.js (copied) (copied from ai-builder/trunk/assets/js/chat-widget.js)
-
tags/2.3.12/assets/js/credits.js (copied) (copied from ai-builder/trunk/assets/js/credits.js)
-
tags/2.3.12/assets/js/language-switcher-block.js (copied) (copied from ai-builder/trunk/assets/js/language-switcher-block.js)
-
tags/2.3.12/assets/js/multi-page-apply.js (copied) (copied from ai-builder/trunk/assets/js/multi-page-apply.js)
-
tags/2.3.12/assets/js/multi-page.js (copied) (copied from ai-builder/trunk/assets/js/multi-page.js) (1 diff)
-
tags/2.3.12/assets/js/pattern-translation.js (copied) (copied from ai-builder/trunk/assets/js/pattern-translation.js)
-
tags/2.3.12/assets/js/settings.js (copied) (copied from ai-builder/trunk/assets/js/settings.js)
-
tags/2.3.12/assets/js/src/editor-blocks/ai-block/ai-block.js (copied) (copied from ai-builder/trunk/assets/js/src/editor-blocks/ai-block/ai-block.js)
-
tags/2.3.12/assets/js/src/editor-blocks/image-ai-blocks/image-ai-controls.js (copied) (copied from ai-builder/trunk/assets/js/src/editor-blocks/image-ai-blocks/image-ai-controls.js)
-
tags/2.3.12/assets/js/src/editor-blocks/text-ai-blocks/text-ai-controls.js (copied) (copied from ai-builder/trunk/assets/js/src/editor-blocks/text-ai-blocks/text-ai-controls.js)
-
tags/2.3.12/assets/js/translation.js (copied) (copied from ai-builder/trunk/assets/js/translation.js)
-
tags/2.3.12/composer.json (copied) (copied from ai-builder/trunk/composer.json)
-
tags/2.3.12/composer.lock (copied) (copied from ai-builder/trunk/composer.lock)
-
tags/2.3.12/debug-language.log (copied) (copied from ai-builder/trunk/debug-language.log)
-
tags/2.3.12/debug-template-part.log (copied) (copied from ai-builder/trunk/debug-template-part.log)
-
tags/2.3.12/debug-unescape.log (copied) (copied from ai-builder/trunk/debug-unescape.log)
-
tags/2.3.12/includes/class-agent-chat-handler.php (copied) (copied from ai-builder/trunk/includes/class-agent-chat-handler.php)
-
tags/2.3.12/includes/class-agent-discovery-service.php (copied) (copied from ai-builder/trunk/includes/class-agent-discovery-service.php)
-
tags/2.3.12/includes/class-agent-execution-service.php (copied) (copied from ai-builder/trunk/includes/class-agent-execution-service.php)
-
tags/2.3.12/includes/class-agent-security-service.php (copied) (copied from ai-builder/trunk/includes/class-agent-security-service.php)
-
tags/2.3.12/includes/class-ajax-handler.php (copied) (copied from ai-builder/trunk/includes/class-ajax-handler.php) (4 diffs)
-
tags/2.3.12/includes/class-css-handler.php (copied) (copied from ai-builder/trunk/includes/class-css-handler.php)
-
tags/2.3.12/includes/class-generations-storage.php (copied) (copied from ai-builder/trunk/includes/class-generations-storage.php)
-
tags/2.3.12/includes/class-translation-handler.php (copied) (copied from ai-builder/trunk/includes/class-translation-handler.php)
-
tags/2.3.12/includes/class-translation-manager.php (copied) (copied from ai-builder/trunk/includes/class-translation-manager.php)
-
tags/2.3.12/includes/class-translation-settings.php (copied) (copied from ai-builder/trunk/includes/class-translation-settings.php)
-
tags/2.3.12/includes/class-translation-switcher.php (copied) (copied from ai-builder/trunk/includes/class-translation-switcher.php)
-
tags/2.3.12/package-lock.json (copied) (copied from ai-builder/trunk/package-lock.json)
-
tags/2.3.12/readme.txt (copied) (copied from ai-builder/trunk/readme.txt) (1 diff)
-
tags/2.3.12/templates (copied) (copied from ai-builder/trunk/templates)
-
trunk/aibui-builder.php (modified) (3 diffs)
-
trunk/assets/js/multi-page.js (modified) (1 diff)
-
trunk/includes/class-ajax-handler.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ai-builder/tags/2.3.12/aibui-builder.php
r3414105 r3414135 4 4 * Plugin URI: https://website-ai-builder.com/ 5 5 * Description: This plugin is used to build your website with AI. 6 * Version: 2.3.1 16 * Version: 2.3.12 7 7 * Author: enkic 8 8 * Author URI: https://enkicorbin.fr/ … … 18 18 19 19 // Définir la version du plugin 20 define('AIBUI_VERSION', '2.3.1 1');20 define('AIBUI_VERSION', '2.3.12'); 21 21 22 22 // Simple CSS minifier (safe whitespace/comment removal) … … 1122 1122 1123 1123 // ------------------------------- 1124 // Increase timeouts for REST API requests (especially for slower servers) 1125 // ------------------------------- 1126 /** 1127 * Increase HTTP request timeout for WordPress REST API calls 1128 * This helps prevent 500 errors on slower servers 1129 */ 1130 add_filter('http_request_timeout', function($timeout) { 1131 // Increase timeout to 120 seconds (2 minutes) for REST API requests 1132 // This is especially important for /wp/v2/settings and other REST endpoints 1133 if (defined('REST_REQUEST') && REST_REQUEST) { 1134 return 120; 1135 } 1136 return $timeout; 1137 }, 10, 1); 1138 1139 /** 1140 * Increase PHP execution time limit for REST API requests 1141 * This prevents PHP timeout errors (500) on slower servers 1142 */ 1143 add_action('rest_api_init', function() { 1144 // Increase PHP execution time limit to 120 seconds for REST API requests 1145 @set_time_limit(120); 1146 }, 1); 1147 1148 // ------------------------------- 1124 1149 // Multi-Page Generator: Cleanup cron and migration 1125 1150 // ------------------------------- -
ai-builder/tags/2.3.12/assets/js/multi-page.js
r3414077 r3414135 437 437 // Get JWT token with timeout 438 438 const controller = new AbortController(); 439 timeoutId = setTimeout(() => controller.abort(), 10000); // 10 second timeout439 timeoutId = setTimeout(() => controller.abort(), 20000); // 10 second timeout 440 440 441 441 const tokenResponse = await fetch(ajaxurl, { -
ai-builder/tags/2.3.12/includes/class-ajax-handler.php
r3414077 r3414135 101 101 // Increase timeout for this request (in case DB is slow) 102 102 // Default is usually 30s, but some hosts have shorter limits 103 @set_time_limit( 60); // Allow up to 60 seconds103 @set_time_limit(120); // Allow up to 120 seconds (2 minutes) for slower servers 104 104 105 105 // Vérifier que les données POST existent … … 585 585 public function get_generation() 586 586 { 587 // Increase timeout for file operations on slower servers 588 @set_time_limit(120); // Allow up to 120 seconds (2 minutes) 589 587 590 if (!isset($_POST['nonce']) || !isset($_POST['id'])) { 588 591 wp_send_json_error('Missing required data'); … … 610 613 public function mark_generation_applied() 611 614 { 615 // Increase timeout for file operations on slower servers 616 @set_time_limit(120); // Allow up to 120 seconds (2 minutes) 617 612 618 if (!isset($_POST['nonce']) || !isset($_POST['id'])) { 613 619 wp_send_json_error('Missing required data'); … … 695 701 public function mark_ai_created() 696 702 { 703 // Increase timeout for database operations on slower servers 704 @set_time_limit(120); // Allow up to 120 seconds (2 minutes) 705 697 706 // Vérifier que les données POST existent 698 707 if (!isset($_POST['nonce']) || !isset($_POST['post_id'])) { -
ai-builder/tags/2.3.12/readme.txt
r3414105 r3414135 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 2.3.1 17 Stable tag: 2.3.12 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
ai-builder/trunk/aibui-builder.php
r3414105 r3414135 4 4 * Plugin URI: https://website-ai-builder.com/ 5 5 * Description: This plugin is used to build your website with AI. 6 * Version: 2.3.1 16 * Version: 2.3.12 7 7 * Author: enkic 8 8 * Author URI: https://enkicorbin.fr/ … … 18 18 19 19 // Définir la version du plugin 20 define('AIBUI_VERSION', '2.3.1 1');20 define('AIBUI_VERSION', '2.3.12'); 21 21 22 22 // Simple CSS minifier (safe whitespace/comment removal) … … 1122 1122 1123 1123 // ------------------------------- 1124 // Increase timeouts for REST API requests (especially for slower servers) 1125 // ------------------------------- 1126 /** 1127 * Increase HTTP request timeout for WordPress REST API calls 1128 * This helps prevent 500 errors on slower servers 1129 */ 1130 add_filter('http_request_timeout', function($timeout) { 1131 // Increase timeout to 120 seconds (2 minutes) for REST API requests 1132 // This is especially important for /wp/v2/settings and other REST endpoints 1133 if (defined('REST_REQUEST') && REST_REQUEST) { 1134 return 120; 1135 } 1136 return $timeout; 1137 }, 10, 1); 1138 1139 /** 1140 * Increase PHP execution time limit for REST API requests 1141 * This prevents PHP timeout errors (500) on slower servers 1142 */ 1143 add_action('rest_api_init', function() { 1144 // Increase PHP execution time limit to 120 seconds for REST API requests 1145 @set_time_limit(120); 1146 }, 1); 1147 1148 // ------------------------------- 1124 1149 // Multi-Page Generator: Cleanup cron and migration 1125 1150 // ------------------------------- -
ai-builder/trunk/assets/js/multi-page.js
r3414077 r3414135 437 437 // Get JWT token with timeout 438 438 const controller = new AbortController(); 439 timeoutId = setTimeout(() => controller.abort(), 10000); // 10 second timeout439 timeoutId = setTimeout(() => controller.abort(), 20000); // 10 second timeout 440 440 441 441 const tokenResponse = await fetch(ajaxurl, { -
ai-builder/trunk/includes/class-ajax-handler.php
r3414077 r3414135 101 101 // Increase timeout for this request (in case DB is slow) 102 102 // Default is usually 30s, but some hosts have shorter limits 103 @set_time_limit( 60); // Allow up to 60 seconds103 @set_time_limit(120); // Allow up to 120 seconds (2 minutes) for slower servers 104 104 105 105 // Vérifier que les données POST existent … … 585 585 public function get_generation() 586 586 { 587 // Increase timeout for file operations on slower servers 588 @set_time_limit(120); // Allow up to 120 seconds (2 minutes) 589 587 590 if (!isset($_POST['nonce']) || !isset($_POST['id'])) { 588 591 wp_send_json_error('Missing required data'); … … 610 613 public function mark_generation_applied() 611 614 { 615 // Increase timeout for file operations on slower servers 616 @set_time_limit(120); // Allow up to 120 seconds (2 minutes) 617 612 618 if (!isset($_POST['nonce']) || !isset($_POST['id'])) { 613 619 wp_send_json_error('Missing required data'); … … 695 701 public function mark_ai_created() 696 702 { 703 // Increase timeout for database operations on slower servers 704 @set_time_limit(120); // Allow up to 120 seconds (2 minutes) 705 697 706 // Vérifier que les données POST existent 698 707 if (!isset($_POST['nonce']) || !isset($_POST['post_id'])) { -
ai-builder/trunk/readme.txt
r3414105 r3414135 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 2.3.1 17 Stable tag: 2.3.12 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.