All-in-One WP Migration is an awesome and powerful plugin for WordPress, specially for WordPress Developer. Today I will show you how you may remove the 512 MB upload limit for All-in-One WP Migration Plugin and increase it to unlimited.
If you are a regular reader of my blog, then you know that I am a great fan of WordPress and working on it as a Full Stack WordPress Developer since 2012. But if you are new in my blog and willing to know about me more, you may read about me here.
Before going to the step by step way to solve All-in-One WP Migration Plugin Upload Size Limit Problem, lets see the issue first. If you are familiar with WordPress or working on WordPress as a developer like me, then you might need to transfer site from one hosting to another hosting, or may be from local development to live server.
There are so many plugin is available to migrate WordPress site from one hosting to another hosting. Here is the 8 Best WordPress Migration Plugins:
- WordPress Duplicator
- All-in-One WP Migration
- UpdraftPlus WordPress Backup Plugin
- WP Migrate DB
- Migrate Guru
- WP Clone
I already used almost all of the migration plugin mentioned above. Though most of the times I used my own developed migration plugin, but if I go with other solutions, then All-in-One WP Migration is my first choice to transfer or migrate WordPress site.
Now lets be clear why this post has been written? If you are a regular user of All-in-One WP Migration, then I am sure that you face Upload Size limit issue. Even if your Internet connect is slow like me, then you will face some more bigger issue to restore backup which is bigger than 512 MB to 600 MB.
All-in-One WP Migration has total three options:
You can export whole website backup in many way, such as directly download, store in Dropbox, Google drive etc etc. You will also get same options while you will import backup.
You can export and download any file size, dose not matter it is 512 MB or 2 GB. You will face upload size limit issue only once you will try to upload a backup file more than 512 MB. Because by default All-in-One WP Migration allow to import maximum 512 MB backups.
How to increase upload size limit of All-in-One WP Migration in easy way step by step
There are two ways to increase Upload size limit of All-in-One WP Migration plugin:
- Editing htaccess file
- Editing plugin core files
First lets learn to increase upload size limit of All-in-One WP Migration using htaccess.
Increase upload size using htaccess
As per All-in-One WP Migration plugin author help guide you can increase upload size limit by adding few line code in .htaccess file. If you follow this way then you must have root access of the website. Here is the step by step guide on increasing upload size limit of WordPress as well as All-in-One WP Migration plugin:
1. First login into your cpanel or hosting panel.
2. Now click on File Manager to open website root. Note that you must need to enable show hidden files in file manager.
3. Once you will enable show hidden files options, you will see .htaccess file in file list. You need to option .htaccess file on editor as shown in bellow image.
4. Now copy bellow codes and paste at the bottom of you .htaccess file. Make sure you click on save button.
That’s it. Now if you go to import options of All-in-One WP Migration plugin, then you will see that your Upload size limit has been increased.
Increase Upload Size limit of All-in-One WP Migration by editing code
Using htaccess method you can increase upload limit of All-in-One WP Migration easily. Actually this solutions is best if your Internet speed and hosting is really good. But if you are like me using shared hosting and also slow internet connection, then you might need to use All-in-One WP Migration other options called Backup Restore.
But in All-in-One WP Migration Backup option has also upload limit issue. Now I will show you how you can increase Upload size limit in All-in-One WP Migration backup restore options.
Step by step guide on increasing upload size limit of All-in-One WP Migration:
You need to follow 7 easy steps to increase upload size limit to restore back:
- First Install and Activate Plugin
- After then Open Plugin Editor
- Select All-in-One WP Migration Plugin
- Now select Constants.php File top Open on Editor
- Edit Constants.php File to increase upload size limit
- Click on Save Changes
- Check the Settings
Also you need to use old version of All-in-One WP Migration plugins to do it.
STEP 1: I am assuming that you already installed and activate All-in-One WP Migration plugin.
I have to mention that you must need to use All-in-One WP Migration plugin version 6.77 to restore any size of backup files. Plugin author has been removed old version from WordPress plugin repository. But dont worry, you can download the All-in-One WP Migration 6.77 version from here.
What you have to do restore bigger file is, First Upload your backup files in ai1wm-backups folder, which you will find inside wp-content folder.
Once you uploaded your backup files in ai1wm-backups folder, you need to go All-in-One WP Migration plugin Backup options. If you uploaded your backup files properly, then you will see backup list under All-in-One WP Migration backup options. You just need to click on restore button to import backup.
But if you are using latest version of All-in-One WP Migration plugin, then you will see upload size limit error as shown in below image:
If you have money then you may purchase their premium addons to increase upload size limit from here. And if you dont want to buy premium addons, then lets go to second step.
STEP 2: As mentioned earlier, you must need to remove All-in-One WP Migration latest version and install old version which is 6.77
STEP 3: Now go to Plugins => Editor and select All-in-One WP Migration as shown above. Once the plugin is loaded in editor, click on constants.php file from the right side:
STEP 4: Now its time to edit the code to increase Upload size limit. Go to line no 284 and you will see Max File Size text. You need to add 536870912 * 20 from bellow to change the upload size limit as shown bellow:
Here is how you it will looks like after changing the value:
STEP 5: Now you must click on Update button to save above actions.
STEP 6: Once saving is done, you will be able to restore any size of backup using All-in-One WP Migration plugin in WordPress.
If you did everything exactly as I shown above, then you will see that your upload limit has been increased as your provided value.
Tips for Advance User:
If you are an advance user and has hosting access, then you can edit All-in-One WP Migration plugin code from hosting file manager as well. To edit All-in-One WP Migration plugin files, you need to go to: wp-content => Plugins => all-in-one-wp-migration/constants.php
That’s it. If you have any question regarding All-in-One WP Migration plugin or if you are unable to solve the plugin upload size problem, please let me know by posting your comment below.
Wishing you best of luck.