Introduction: The 512MB Wall is a Myth If you are reading this, you have likely encountered the dreaded "Maximum upload size limit exceeded" error while trying to import a massive WordPress backup. You may have purchased the "Unlimited Extension" from the developer, ServMask, only to discover that while it says unlimited, the plugin still forces a hard cap of 100GB on many standard server configurations.
if ( ! defined( 'AI1WM_MAX_FILE_SIZE' ) ) { // Set to 200GB (214748364800 bytes) // For truly unlimited, set to PHP_INT_MAX but be careful on 32-bit systems. define( 'AI1WM_MAX_FILE_SIZE', 214748364800 ); } Alternatively, for "unlimited" (limited by your OS):
max_execution_time = 0 max_input_time = -1 memory_limit = -1 post_max_size = 0 upload_max_filesize = 0 max_input_vars = 10000 Add this to your server block: allinone wp migration 100gb fix
Don't upload via the browser. Use the "Import via File" (drag and drop into the wp-content/ai1wm-backups folder) method. Part 2: The "Real" Fix – No Coding Required (The Drag & Drop Trick) The official documentation tries to hide this, but if you have SSH or FTP access to your server, you can bypass the 100GB upload limit entirely by avoiding the upload form.
You must re-do this edit every time you update the plugin. Alternatively, use a code snippet plugin to override the constants. Step 1: Locate the Constraint File Navigate to your plugins folder: /wp-content/plugins/all-in-one-wp-migration/constants.php Step 2: Modify the Size Limits Open constants.php and look for these lines. They vary by version, but typically look like: Introduction: The 512MB Wall is a Myth If
if ( ! defined( 'AI1WM_MAX_FILE_SIZE' ) ) { define( 'AI1WM_MAX_FILE_SIZE', 2 << 28 ); // 512MB default } To get the byte value for 100GB, the calculation is 100 * 1024 * 1024 * 1024 . But the plugin often uses bitshifting. For safety, we will just set an absurdly high constant.
define( 'AI1WM_MAX_CHUNK_RETRIES', 50 ); Sometimes the plugin fails because it miscalculates free space. In lib/model/class-ai1wm-backups.php , comment out the disk space check: defined( 'AI1WM_MAX_FILE_SIZE' ) ) { // Set to
// if ( $disk_free_space < $total_files_size ) { // throw new Ai1wmNotEnoughDiskSpaceException( __( 'There is not enough disk space...', AI1WM_PLUGIN_NAME ) ); // } Editing the plugin means nothing if your server falls over. You need to ensure your php.ini or .user.ini file contains: