I’m trying to setup my local site, but I’m having a weird issue happen to me. I am using the WP plugin called all-in-one. I copied the paid plugin files from the live site to the local site and it seems to be working fine. The problem is, when I got to import the live site’s file to the local one, I get a message that reads "Unable to open file for reading. File: x.wpress"
Now, I read from the dev that this could be happening for a number of reasons like:
- memory_limit in PHP is not large enough to accommodate copying the
file - max_execution_time in PHP exceeds when copying the file
- hosting provider restrictions: there are so many here but the most
common one is a limit imposed on the max size of a file
I did upgraded the upload max filesize on my local site to 2GB, but I used a plugin because for some reason the changes weren’t being updated when using local files like wpconfig.php or php.ini. The fixes I’ve seen involve editing those files, but I’m not sure if I’m editing the wrong versions of said files (?) because the changes never took place. I am using MAMP and editing the files inside htdocs.
Any help is appreciated. Thanks!
2
Answers
I edited the .htaccess file under MAMP/htdocs/TestSite with these php values and just changed the numbers on it to fit my site. For some reason it decided to work this time.
There is 1 solution how you can change the LIMIT in Plugin All in One
go to Plugins => Editor and select All-in-One WP Migration as shown above. Once the plugin is loaded in the editor, click on the constants.php file from the right side:
Now it’s time to edit the code to increase the 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 below:
Now you must click on the Update button to save the above actions.
Once saving is done, you will be able to restore any size of backup using the All-in-One WP Migration plugin in WordPress.
Or you can change the same directly in file
wp-content => Plugins => all-in-one-wp-migration/constants.php
Check please if it work for you?