If the WP Staging cloning process interrupts while it copies files from one location to another or if it stops with the error “Error 404 Can’t find Ajax request URL,” go to WP Staging > Settings and try the settings below:
- CPU Load: Low
- Delay Between Requests: 1 (If it still stops, increase it to 2 seconds)
This issue can be thrown by the module mod_security being activated on your server.
WP Staging fires multiple ajax post requests to admin-ajax.php for copying files from one location to another.
mod_security blocks these requests after a while when it assumes that they are malicious or could harm your server. They do not, of course.
Note: The delay setting will slow down tremendously the cloning process, so use it as the last option only!
Please also try the following:
- Increase the setting: File Copy Limit to 250
- Disable mod_security at all (not recommended)
- Ask your hoster if they can provide you with the mod_security log. Send it to us or ask them if any specific rule is causing mod_security to block these ajax requests. We can probably write a custom fix for you when we get that info.