NS Cloner not cloning; all AJAX requests 400 without log
-
I’d like to use NS Cloner on a subdomain multisite. To test it out, I’m running NS Cloner on a Docker-hosted subdomain multisite on my own computer, in a local development environment.
No AJAX request made by NS Cloner seems to work. For example, the “NS Cloner Statistics” modal with the “Yes, Share”, “Yes, Share Anonymously”, and “No, Dismiss” buttons does not work. In the browser console, I see that the browser makes a request to the site’s admin-ajax endpoint with this payload:
action: ns_cloner_save_analytics_mode
nonce: 8b9a9cea84
mode: no_shareThe request returns
400
, and the modal never dismisses.If I manually remove the modal from the page using the browser inspector, the big “Clone” button also does not work. Filling out the clone form results in more errors in the browser console. The check that the new domain name is available makes a request to
wp-admin/admin-ajax.php?flag=ns_cloner_validate_section
and returns400
.Clicking the big “Clone” button fires a request to
wp-admin/admin-ajax.php?flag=ns_cloner_process_init
with an appropriate-looking payload, and this also returns400
.The NS Cloner Logs/Status page shows no logs or in-progress cloning operations.
Other admin-ajax.php requests on this site and on this page, such as
wp-auth-check
, succeed.No NS Cloner request results in information being written to the site’s debug log. These
400
s are not causing PHP errors.There is one notice in the admin that _maybe_ seems relevant:
It appears you have HTTP basic auth or something else blocking remote requests to your site, which means background cloning won’t work. The Cloner will default to AJAX processing, so you should be able to still clone sites successfully, but progress will stop if you leave this page. If you have basic auth enabled, you can add a workaround. Error: cURL error 60: SSL certificate problem: unable to get local issuer certificate.
The workaround link is a 404 page.
Site details:
- WordPress: 6.1.1
- PHP: 8.0.18
- Web server: nginx/1.21.4
- NS Cloner version: 4.2.2.1
Browser details:
- Chrome 109
- The topic ‘NS Cloner not cloning; all AJAX requests 400 without log’ is closed to new replies.