I’ve been noticing my wordpress site is regularly reporting a “wpcom connection test” error in the Site Health section. It advises reconnecting Jetpack which I do, and which appears to work. However, the next time I access the site, the error has returned …
The Jetpack troubleshooting tips page
advises checking the XML-RPC file by typing out my address in the browser and adding “/xmlrpc.php” but if I do this I get a “404 not found” error. The help advises that the webhost may have security in place that is blocking the XML-RPC file, which can cause issues with Jetpack and other plugins.
Can you advise whether or not this is the case - and in any event, can you suggest a solution?
Many thanks!
This file is used by Jetpack and other plugins and apps to connect to your site. It must return the following message:
XML-RPC server accepts POST requests only.
Since your site returns a 404 error for this page, I would recommend that you check the following:
Can you see the /xmlrpc.php file at the root of your WordPress installation when accessing your site via FTP? If you don’t, then please try re-installing WordPress. You can do this by going to the Dashboard → Upgrades page, then click the “Reinstall WordPress” button.
Do you use any security plugins that may block access to this file? If so, could you try to disable them? You might also want to check your site’s .htaccess file for any rules that might be blocking access to the xmlrpc.php file.
Does your hosting provider block access to this file? If you don’t find any plugin that may block access to the file on your site, I would recommend that you get in touch with your host.
For question 3, my test site is not blocking xmlrpc.php that I can find, but it’s possible to do so in the .htaccess in some cases. So please check for xmlrpc.php references in the .htaccess file in the main Wordpress Directory.
If after checking for the xmlrpc.php file and looking at the .htaccess file you are still having problems, please create a support ticket in your Client Area or contact support@reclaimhosting.com
I can confirm that the /xmlrpc.php file is present.
No specific security plugins are installed, and in any case no new plugins have been installed for several months, and the jetpack errors have only arisen very recently.
I’ve checked .htaccess and can’t see any reference to xmlrpc.php
So all in all, it looks like I’ll need to raise a support ticket! But thanks for your quick reply …