Inspecting the URL using Google Search Console shows that /wp-admin/admin-ajax.php is linked to from multiple pages on the site. Attempting to access /wp-admin/admin-ajax.php while pretending to be Googlebot returns a status of 400.
Hey Jon,
This issue is not caused by our theme nor this is related to theme features. Please contact your web host why admin-ajax.php returns 404. If your web host can’t resolve the issue, you will have problems using themes and plugins using admin-ajax.php.
The status code in this case is 400, not 404. After doing some Googling, it looks like admin-ajax.php returns 400 as an error indicator. It doesn’t mean that it was blocked by the hosting service.
Google noticed three pages that it says tried to reference admin-ajax.php getting a 400 status back. I tried accessing those pages with my user agent set to Googlebot Smartphone in Chrome, and none of the pages made any references to admin-ajax.php, even if I interacted with the pages some. So I do not know what happened.
Hello John,
Switch to a different theme and test again. If the issue still happening, a 3rd party plugin could be causing the issue.
Best Regards.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.