• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Issue Allow WPML Multi-stages licenses in wp-config

Hi,
Wordpress-toolkit detect a problem and won't copy data
Could you please provide an error message from WordPress Toolkit?

I've tried to reproduce your case, but the "Copy Data" was finished successfully.
 
[2022-03-03T16:32:07.970-05:00] SiteSyncingInCompletedWithErrors|Data copy from WP installation complete
d (errors)|ERROR|........|18|https://abc.com|Copy Data|Copying of data from https://dev.abc.com to https://abc.com completed with the
following issue: Failed to reset cache for the instance #13: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 528384 bytes) in /var/www/vhosts/abc.com/dev.abc.com/wp-content/plugins/sitepress-multilingual-cms/classes/utilities/class-debug-backtrace.php on line 137 Fatal error: Allowed memory size of 536870912 bytes exhausted
(tried to allocate 528384 bytes) in /var/www/vhosts/abc.com/dev.abc.com/wp-content/plugins/sitepress-multilingual-cms/classes/utilities/class-debug-backtrace.php on line 137 Err
or: Il y a eu une erreur critique sur ce site.En apprendre plus sur le débogage de WordPress. Il y a eu une erreur critique sur ce site. .

-----------------

if we take out the DEFINE WPML licenses key in both environnements in the wp-config, the error stop.
 
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 528384 bytes) in /var/www/vhosts/abc.com/dev.abc.com/wp-content/plugins/sitepress-multilingual-cms/classes/utilities/class-debug-backtrace.php on line 137 Fatal error: Allowed memory size of 536870912 bytes exhausted
(tried to allocate 528384 bytes)
That error is not related to WordPress Toolkit.
The error disappears when you remove "define" from wp-config file because in such case the WPML logic is not fully performed, due to lack of valid license key. I can't affirm about this but this is most likely how it works internally.

Looks like the error with "class-debug-backtrace.php" about "Allowed memory size" appears sometimes for WPML users, i've found some topics on WordPress forum and on WPML forum about it, but the solution is not clear.


The simplest way to resolve that error is to set PHP memory_limit to 640M, you can do this in PHP settings (Domains -> your domain -> PHP Settings -> memory_limit), also please check the existence of WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT constants inside wp-config.php, if you see them - increase their value too.


Also I can recommend to report an issue to WPML forum :)
 
Now we have this error :

Failed to reset cache for the instance #13: WordPress Toolkit was not able to finish running an operation on this site in 180 seconds, so the operation was terminated. This could mean that your WordPress installation might be infected with malware. Check the wp-config.php file of the installation for potential malware code or run an anti-virus scan. If you cannot find any traces of malware, try running the operation again later.

But in fact that run more than 15 minutes before to throw the error. This not normal a ~350Mb ishh web site who took normally about 3 minutes to copy become out of memory/time out with 1 more line in the wp-config. The content remain the same in both case. You clearly have a bug or a not implemented support in your tool. The tool clearly doesn't recognise the line and he don't know what to do with it, so considered it as malware stuff.

Thank you!
 
Back
Top