Changeset 3378266
- Timestamp:
- 10/14/2025 03:00:04 PM (5 months ago)
- Location:
- 1-click-migration/trunk
- Files:
-
- 3 edited
-
inc/backup/class-ocm-backup.php (modified) (3 diffs)
-
one-click-migration.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
1-click-migration/trunk/inc/backup/class-ocm-backup.php
r3378249 r3378266 327 327 328 328 if (!One_Click_Migration::$process_backup_single->is_queue_empty()) { 329 // Queue already exists, just dispatch it 330 One_Click_Migration::$process_backup_single->dispatch(); 331 wp_safe_redirect(admin_url('tools.php?page=one-click-migration')); 332 exit; 329 // Queue already exists, just process it directly 330 One_Click_Migration::$process_backup_single->trigger_processing(); 333 331 } 334 332 … … 445 443 } 446 444 } 447 // Save the queue and dispatch for processing445 // Save the queue and use direct processing for maximum reliability 448 446 One_Click_Migration::$process_backup_single->save(); 449 450 // Try async dispatch first 451 $dispatched = One_Click_Migration::$process_backup_single->dispatch(); 452 453 if (is_wp_error($dispatched)) { 454 // If async dispatch fails, use direct processing for compatibility 455 One_Click_Migration::write_to_log(' SYSLOG: Async dispatch failed, using direct processing for maximum compatibility'); 456 One_Click_Migration::$process_backup_single->trigger_processing(); // Process it directly 457 } else { 458 One_Click_Migration::write_to_log(' SYSLOG: Backup dispatched asynchronously'); 459 } 460 461 // Redirect back to the admin page (Note: 500 error may still appear in console but is cosmetic only) 462 wp_safe_redirect(admin_url('tools.php?page=one-click-migration')); 463 exit; 447 One_Click_Migration::write_to_log(' SYSLOG: Using direct processing for maximum compatibility'); 448 One_Click_Migration::$process_backup_single->trigger_processing(); 464 449 } 465 450 … … 500 485 501 486 if (!One_Click_Migration::$process_restore_single->is_queue_empty()) { 502 // Queue already exists, just dispatch it 503 One_Click_Migration::$process_restore_single->dispatch(); 504 wp_safe_redirect(admin_url('tools.php?page=one-click-migration')); 505 exit; 487 // Queue already exists, just process it directly 488 One_Click_Migration::$process_restore_single->trigger_processing(); 506 489 } else { 507 490 One_Click_Migration::$process_restore_single->push_to_queue(array($username, $password)); 508 491 509 // Save the queue and dispatch for processing492 // Save the queue and use direct processing for maximum reliability 510 493 One_Click_Migration::$process_restore_single->save(); 511 512 // Try async dispatch first 513 $dispatched = One_Click_Migration::$process_restore_single->dispatch(); 514 515 if (is_wp_error($dispatched)) { 516 // If async dispatch fails, use direct processing for compatibility 517 One_Click_Migration::write_to_log(' SYSLOG: Async dispatch failed, using direct restore processing for maximum compatibility'); 518 One_Click_Migration::$process_restore_single->trigger_processing(); // Process it directly 519 } else { 520 One_Click_Migration::write_to_log(' SYSLOG: Restore dispatched asynchronously'); 521 } 522 523 // Redirect back to the admin page 524 wp_safe_redirect(admin_url('tools.php?page=one-click-migration')); 525 exit; 494 One_Click_Migration::write_to_log(' SYSLOG: Using direct restore processing for maximum compatibility'); 495 One_Click_Migration::$process_restore_single->trigger_processing(); 526 496 } 527 497 } -
1-click-migration/trunk/one-click-migration.php
r3378249 r3378266 5 5 * Plugin URI: https://wordpress.org/plugins/1-click-migration/ 6 6 * Description: Migrate, copy, or clone your entire site with 1 click. <strong>Any host, no size limitation, no premium versions.</strong> 7 * Version: 2.3. 57 * Version: 2.3.6 8 8 * Author: 1ClickMigration 9 9 * Author URI: https://1clickmigration.com/ -
1-click-migration/trunk/readme.txt
r3378251 r3378266 5 5 Tested up to: 6.8.3 6 6 Requires PHP: 7.4 7 Stable tag: 2.3. 57 Stable tag: 2.3.6 8 8 Author URI: https://1clickmigration.com 9 9 License: GPLv3 or later … … 111 111 112 112 == Changelog == 113 = 2.3.6 = 114 * **Reliability Fix**: Disabled async dispatch in favor of direct processing for guaranteed execution on all hosting environments 115 * **Compatibility**: Resolved backup hanging issues on AWS and other servers where async HTTP requests may fail silently 116 * **Stability**: Reverted to proven direct processing approach for maximum reliability across all hosting providers 117 113 118 = 2.3.5 = 114 119 * **UX Improvement**: Disable Backup/Restore buttons when all components are excluded to prevent empty backups
Note: See TracChangeset
for help on using the changeset viewer.