WP Toolkit can't use the "Copy" feature
Hello everyone,
I was working on a staging site and looking to Copy the file to the live site and it comes with the following errors:
I have already increase the maximum memory allowed to 600MB but still no luck :| Any advice?
Failed to reset cache for the instance #34: Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 106496 bytes) in */public_html/staging/wp-settings.php on line 432 Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 28672 bytes) in /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/php-cli-tools/lib/cli/Colors.php on line 105
I have already increase the maximum memory allowed to 600MB but still no luck :| Any advice?
-
You need to increase PHP's memory_limit, seems it's now 40MB. 0 -
You need to increase PHP's memory_limit, seems it's now 40MB.
I already set it to this, still no luckdisplay_errors = Off max_execution_time = 300 max_input_time = 300 max_input_vars = 1000 memory_limit = 600M post_max_size = 400M session.gc_maxlifetime = 1440 session.save_path = "/var/cpanel/php/sessions/ea-php74" upload_max_filesize = 12M zlib.output_compression = Off
I set it on the root account as well as the domains.0 -
and in wp-config.php there is no WP_MEMORY_LIMIT defined? in .htaccess file? 0 -
and in wp-config.php there is no WP_MEMORY_LIMIT defined? in .htaccess file?
I just checked, no, not at all :(0 -
/public_html/staging that's a subdomain? i.e staging.domain.com. In that case it has a separate memory limit which you can set under MultiINI in cPanel. Can you double check you set this for staging and not for Home or for the main domain? 0 -
/public_html/staging that's a subdomain? i.e staging.domain.com. In that case it has a separate memory limit which you can set under MultiINI in cPanel. Can you double check you set this for staging and not for Home or for the main domain?
Hello, I created a phpinfo file for the staging domain and yes, the memory is set properly as well:0 -
Well how about bumping up the global value then?:) nor 32MB neither 128MB is too high so I would then go ahead and increase this from WHM under MultiPHP for the respective PHP version to 512 or 768MB. At least this is the best I can suggest without having a closer look :( 0 -
Well how about bumping up the global value then?:) nor 32MB neither 128MB is too high so I would then go ahead and increase this from WHM under MultiPHP for the respective PHP version to 512 or 768MB. At least this is the best I can suggest without having a closer look :(
Ayo Andrew, you are absolutely right, changing Master Value does fix the issue. WPToolkit is working properly now. I think WPToolkit is using Master PHP value instead, that is probably why it didn't work. Thanks so much :D0 -
I'm glad you were able to track that down! 0 -
Well how about bumping up the global value then?:) nor 32MB neither 128MB is too high so I would then go ahead and increase this from WHM under MultiPHP for the respective PHP version to 512 or 768MB. At least this is the best I can suggest without having a closer look :(
This worked perfectly! Changing the values in the MultiPHP on WHM fixed the issues I was getting after updating my sites to PHP 8. Thank you.0
Please sign in to leave a comment.
Comments
12 comments