Plugin Directory

Changeset 3378266


Ignore:
Timestamp:
10/14/2025 03:00:04 PM (5 months ago)
Author:
1clickmigration
Message:

2.3.6

Location:
1-click-migration/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 1-click-migration/trunk/inc/backup/class-ocm-backup.php

    r3378249 r3378266  
    327327
    328328        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();
    333331        }
    334332
     
    445443            }
    446444          }
    447         // Save the queue and dispatch for processing
     445        // Save the queue and use direct processing for maximum reliability
    448446        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();
    464449    }
    465450
     
    500485
    501486        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();
    506489        } else {
    507490            One_Click_Migration::$process_restore_single->push_to_queue(array($username, $password));
    508491           
    509             // Save the queue and dispatch for processing
     492            // Save the queue and use direct processing for maximum reliability
    510493            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();
    526496        }
    527497    }
  • 1-click-migration/trunk/one-click-migration.php

    r3378249 r3378266  
    55 * Plugin URI: https://wordpress.org/plugins/1-click-migration/
    66 * 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.5
     7 * Version: 2.3.6
    88 * Author: 1ClickMigration
    99 * Author URI: https://1clickmigration.com/
  • 1-click-migration/trunk/readme.txt

    r3378251 r3378266  
    55Tested up to: 6.8.3
    66Requires PHP: 7.4
    7 Stable tag: 2.3.5
     7Stable tag: 2.3.6
    88Author URI: https://1clickmigration.com
    99License: GPLv3 or later
     
    111111
    112112== 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
    113118= 2.3.5 =
    114119* **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.