Fix Jetpack Connection Problem
Fix Jetpack Connection Problem

Fix An Error Occurred Please Try Again in Jetpack WordPress

Jetpack is one of the popular WordPress plugins that offer different modules for optimization, speed, security, AI assistant, etc. For using the plugin on your site, you need to connect the plugin with your account. However, sometimes you may face an error “An error occurred. Please try again” when trying to setup or connect the site account. If you are stuck up with this error, here is how to fix.

Jetpack Connection Error

After activating the plugin, you will be prompted to connect to account to start using the modules. When you click on the “Set up Jetpack” or any other connection link, you will see an error showing “An error occurred. Please try again” without any other information. It is impossible to guess the root cause as there will be no other clue shown or reason shown with the error.

Jetpack Connection Error
Jetpack Connection Error

1. Enable XML-RPC

WordPress uses XML-RPC protocol to allow third-party applications like Jetpack to connect and post content on your site. In most cases, you might have disabled XML-RPC service with a security plugin. When you see the error occurs in Jetpack connection, XML-RPC is the first thing you should check. You may need to check your security plugin’s settings and make sure XML-RPC is NOT disabled.

For example, all SiteGround WordPress installations come with Security Optimizer plugin. This plugin allows you to disable XML-RPC and go to “Security Optimizer > Site Security” section and disable “Disable XML-RPC” option.

Disable XML-RPC in Security Optimizer Plugin
Disable XML-RPC in Security Optimizer Plugin

Even optimization plugins like Perfmatters also offer an option to disable XML-RPC. If you are using Perfmatters, go to “General” section and turn off “Disable XML-RPC” option.

Disable XMLRPC in Perfmatters
Disable XML-RPC in Perfmatters

So, check all your plugins and make sure you have not disabled XML-RPC and try to reconnect account. You should see the connection works without any error.

2. Disable Other Plugins

Sometimes, other plugins may conflict with Jetpack connection and cause error. If you have too many plugins installed, it is difficult to find the root cause. The simple solution here is to deactivate all other plugins (except Jetpack) and check whether the connection is working. If it is working, you can enable the plugins one by one to confirm which plugin is causing the conflict.

3. Clear Your Cache

Caching is another common problem that prevents connecting your site with third-party applications. If you are using WP Rocket or any other caching plugins, make sure to purge the cache or deactivate the plugin when you face Jetpack connection problem. Note that you may also need to delete your CDN and server-side cache.

4. Disable Bot Blocking in Cloudflare

If you are using Cloudflare CDN, you will have lot of problems with “Block Fight Mode” option. Many times, this option will block legitimate connections like Jetpack, Googlebot, Bingbot, etc. Go to your Cloudflare account and navigate to “Security > Bots” section. Make sure to turn off “Block Fight Mode” option and purge your cache. After that check whether you can successfully be able to connect to account in Jetpack settings.

Disable Bot Fight Mode in Cloudflare
Disable Bot Fight Mode in Cloudflare

If you are using premium Cloudflare version, you may need to disable “Super Bot Fight Mode” option.   

5. Whitelist Jetpack IP

The last option is to whitelist Jetpack IP addresses, so that they are not blocked by your hosting company or CDN service like Cloudflare. You can also create an exception rule in your security setup and allow Jetpack IP addresses to access XML-RPC file on your site. In this way, you can still disable XML-RPC access for all but only allow Jetpack to use the XML-RPC API. You can get the latest Jetpack IP addresses from their official site.

Simona is a seasoned WordPress developer interested in publishing actionable content that helps users to solve problems.