Increase 512MB limit in All-in-One WP Migration
We often use this plugin to migrate WordPress site from one host to another. To do that, we usually use plugin called All-in-One WP Migration. But the plugin has limitation of maximum 512MB. In this post, I wanna share how we increase the limit, let’s get to it.
Please take note that the following hack only works for version 6.77 and below, so if you have version above 6.77, then you need to downgrade it. I will share in another post on how to downgrade WordPress plugin.
First, make sure the plugin is installed and it is inactive. Then we need to edit it. Go to Plugins / Editor.
Select the All-in-One WP Migration from the dropdown and press Select to select it.
In the Plugin Files, click on constants.php to edit it.
Look for Max File Size, or in this example, it’s in line 284. You will see something like this.
define( 'AI1WM_MAX_FILE_SIZE', 2 << 28 );
We need to edit that line to change the limit. For example we change it to 10GB, here is how you do it.
define( 'AI1WM_MAX_FILE_SIZE', 536870912 * 20 );
Click on Update File to save your changes.
Activate the plugin, then to go All-in-One WP Migration / Import. There, you will see the limit 512MB is now changed to 10GB.
Congrats, you made it, how you can import maximum 10GB of file. Have fun.