How to Easily Overcome cURL Error 28 in WordPress

Posted on

Is your website experiencing cURL error 28 and looking for a way to fix it?

cURL error 28 generally occurs due to a problem in the WordPress REST API. Thus causing your website to be inaccessible. But you don’t need to worry too much. in this article, you will find how to fix cURL error 28 properly.

Immediately, let’s see the discussion below!

What is cURL error 28?

cURL error 28 is an error that appears when WordPress is unable to respond back to a data request within a certain time.

Generally, WordPress uses REST API and cURL to send and receive data requests.

REST API is a programming technique, while cURL is software used by WordPress and other website applications to send and receive server data requests using URLs.

If, the request is not responded to in a timely manner, a cURL 28 error will occur.

Some Possible Causes of the cURL 28 Error

So, here are some of the causes of the cURL 28 error:

1. Security Plugin Suspect REST API Request Activity

The WordPress security plugin can detect suspicious activity coming from a certain IP address. Then, the plugin will block IPs to secure the website.

Unfortunately, submitted REST API requests may be considered suspicious activity. So, the WordPress security plugin will block it.

2. Problematic WordPress Plugins

WordPress plugins will usually make their own API requests to send and receive data. So, if this API request takes too long or is done frequently, an error will occur in cURL.

3. Slow WordPress Hosting Server

The next cause of cURL error 28 is that your WordPress hosting server is very slow in responding to REST API requests.

This might happen because the PHP version on the server and cURL server that you are using are not using the latest version.

4. The SSL configuration is not correct

Finally, the possible cause of cURL error 28 is that the SSL configuration of your WordPress website has not been done properly. This allows HTTP to fail to make the request and a cURL timeout error occurs.

3+ Ways to Overcome cURL Error 28 in WordPress

Here are 3+ effective ways to deal with cURL Error 28 on WordPress that you can try!

1. Turn off the WordPress Firewall Temporarily

The first way to deal with cURL error 28 in WordPress is to temporarily turn off your WordPress Firewall. This step is taken to anticipate that your security plugin will block REST API requests because they are considered viruses.

The method is very easy. Just click Plugin > Deactivate your security plugin.

After deactivating the security plugin, check the site health page to see if cURL error 28 has been successfully resolved.

If it has been successfully resolved, it means that it is true that your security plugin is blocking certain API requests. Well, now you need to check which APIs are blocked by the security plugin.

To do this, click Sucuri Security > Firewall (WAF) > Audit logs.

2. Deactivate All WordPress Plugins

If deactivating the security plugin doesn’t solve the problem, try deactivating all of your WordPress plugins. Relax, you only need to temporarily deactivate it. This step is done to check whether there is a problematic plugin.

Here’s an easy way to deactivate all plugins at once:

Click Plugins > Installed Plugins. Then check the plugin column, then select Deactivate.

Now check the Site Health page to check if the cURL error 28 error has been resolved. If the error is resolved, it means that an API was blocked by one of the plugins.

Now, activate one by one the deactivated plugins to find out which plugin is having problems. If when the plugin is activated the error appears again, it means the plugin is the cause.

After finding the plugin that is blocking the API, try adjusting the plugin settings or contacting the plugin’s support team.

3. Make sure your hosting server uses the latest software

The next way to deal with cURL error 28 is to make sure your WordPress hosting server is using the latest version of PHP, cURL library, and OpenSSL.

4. Fix SSL Issues

Alternatively, try to make sure the SSL configuration installed on the website is correct. Because, if it’s not installed properly, HTTP may not be able to request data.

To solve this problem, try to reinstall your SSL via cPanel. If you use a free SSL from a hosting provider, all you have to do is click the Let’s Encrypt SSL menu in the cPanel menu. Then, select the SSL website that you want to reinstall then click Reinstall.

If so, your SSL should be properly installed. However, if you are still experiencing problems, try contacting your hosting provider’s support team for assistance regarding reinstalling SSL.

Quickly Overcome cURL Error 28 Right now!

cURL error 28 is an error that occurs when WordPress is unable to respond back to data within a certain time. The cause of this error can be influenced by several things, for example a security plugin that blocks the REST API, a problem with the WordPress plugin, the server hasn’t been updated, and the SSL configuration isn’t correct.

How to deal with cURL error 28 you can do in the way described above:

– Turn off the WordPress Firewall Plugin
– Deactivate All WordPress Plugins
– Make sure the Hosting Server has been updated
– Fix SSL issue

Well, now you know how to deal with cURL error 28, right? If you have done all of these methods but the cURL error still occurs, you can contact your web hosting provider’s customer support to help you.

Come on, immediately fix this error so that your WordPress website can be active again.

[hurrytimer id=”247″]