WP Toolkit can't use the "Copy" feature

Operating System & Version
Centos 7.0

PeterN123

Active Member
Aug 4, 2021
35
5
8
Australia
cPanel Access Level
Root Administrator
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:

Code:
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?
 
Last edited by a moderator:

quietFinn

Well-Known Member
Feb 4, 2006
1,787
406
438
Finland
cPanel Access Level
Root Administrator
You need to increase PHP's memory_limit, seems it's now 40MB.
 

PeterN123

Active Member
Aug 4, 2021
35
5
8
Australia
cPanel Access Level
Root Administrator
You need to increase PHP's memory_limit, seems it's now 40MB.
I already set it to this, still no luck

Code:
display_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.
 

andrew.n

Well-Known Member
Jun 9, 2020
934
346
63
EU
cPanel Access Level
Root Administrator
and in wp-config.php there is no WP_MEMORY_LIMIT defined? in .htaccess file?
 

andrew.n

Well-Known Member
Jun 9, 2020
934
346
63
EU
cPanel Access Level
Root Administrator
/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?
 

PeterN123

Active Member
Aug 4, 2021
35
5
8
Australia
cPanel Access Level
Root Administrator
/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:

 

andrew.n

Well-Known Member
Jun 9, 2020
934
346
63
EU
cPanel Access Level
Root Administrator
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 :(
 
  • Like
Reactions: Spirogg

PeterN123

Active Member
Aug 4, 2021
35
5
8
Australia
cPanel Access Level
Root Administrator
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 :D
 

kwsim

Registered
Feb 4, 2022
2
1
1
United States
cPanel Access Level
Root Administrator
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.
 
  • Like
Reactions: andrew.n