WP Toolkit cloning task fails with the following error message:
PLESK_ERROR: WP-CLI command has not finished working in 60 seconds, so it was terminated. Usually this means that there are problems with WordPress installation itself, for example it could be infected with malware. Check the wp-config.php file of the installation for potential malware code.
or the following message is received via email:
PLESK_INFO: WP Toolkit was not able to finish running an operation on this site in 60 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.
WP Toolkit has a default timeout of 60 seconds to skip suspicious/infected WordPress instances, but this value is not enough for the affected instance. Probably, this is caused because the WP Toolkit cannot finish the cloning task due to an insufficient amount of CPU and RAM resources available or there are many files to be copied to the new staging instance.
Increase WP Toolkit default timeout value:
Go to Extensions > My Extensions > Panel.ini Editor > Open > Editor.
Add the following lines to the end of the text field and click Save:
wpCliTimeoutHeavy = 1800
wpCliTimeoutMedium = 300
wpCliTimeoutRegular = 300
wpCliTimeoutMaintenanceTimeout = 180
In case the issue persists, scan and remove malware from the WordPress instance with an antivirus software.
WP Toolkit Cloning hangs or stops after 60 seconds