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?
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 firstname.lastname@example.org