Wpcom connection test fails

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!

Hello,

I checked my wordpress install with the url followed by /xmlrpc.php and you should see the following: XML-RPC server accepts POST requests only.

If you are getting a “404 not found” make sure that the file exists in the main directory of your Wordpress install as shown in cPanel > File Manager

Refer to this guide for the steps to check.

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.

You can see a working example here:

https://jetpack.com/xmlrpc.php

Since your site returns a 404 error for this page, I would recommend that you check the following:

  1. 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.

  2. 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.

  3. 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

Thanks for the help!

  1. I can confirm that the /xmlrpc.php file is present.
  2. 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.
  3. 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 …

This topic was automatically closed after 365 days. New replies are no longer allowed.