Home/Blog/How to Fix “cURL Error 28: Connection Timed Out” in WordPress

How to Fix “cURL Error 28: Connection Timed Out” in WordPress

cURL error 28 connection timeout fix guide for WordPress

Opening Tools โ†’ Site Health and seeing “cURL error 28: Connection timed out after 10000 milliseconds” is one of the most common warnings WordPress site owners face. This guide to the cURL error 28 fix explains exactly what it means, why your server’s outbound requests are timing out, and six practical steps to resolve it โ€” from disabling a blocking firewall to checking your server’s software. If you’re new to diagnosing WordPress issues, browse the KamiWeb blog for more step-by-step troubleshooting guides.

What Causes cURL Error 28

cURL is the library WordPress uses to make HTTP requests to other servers โ€” checking for updates, connecting to payment gateways, syncing with email services, and running the REST API loopback request. Error 28 means a request took too long and was abandoned before getting a response. The usual causes are:

  • Firewall blocking outbound requests: a security plugin (like Wordfence) or a server-level firewall blocking the API calls your site needs.
  • Plugin making too many API calls: plugins that constantly phone home to external services can overwhelm slow requests and trigger timeouts.
  • Incorrect SSL configuration: mismatched SSL setup on your server can make outgoing HTTPS requests fail silently.
  • Outdated server software: old PHP, cURL library, or OpenSSL versions are slower and less reliable at negotiating connections.
  • Low PHP memory or execution limits: cURL failures often follow memory pressure โ€” when PHP is starved of memory, requests slow down and time out.
  • Server-side restrictions: some hosts block outbound connections entirely, or the remote service (WordPress.org, Stripe, PayPal) is temporarily down.

How to Fix cURL Error 28

Start by confirming the error: go to Tools โ†’ Site Health in your WordPress dashboard and look for the loopback or REST API warning quoting “cURL error 28”. Then work through these steps in order โ€” the first two solve it for most people. Our free web tools can help you check your site’s basic configuration along the way.

Connection timeout concept with hourglass over server network

  1. Temporarily disable your security firewall. If you use a firewall or security plugin, deactivate it briefly and re-check Site Health. If the error disappears, inspect the firewall logs to see which API requests were blocked, then adjust the rules to allow legitimate WordPress API calls instead of leaving the firewall off.
  2. Deactivate all plugins to find the culprit. Go to Plugins โ†’ Installed Plugins, select all, choose Deactivate, and check Site Health again. If the error is gone, reactivate plugins one by one until it returns โ€” you’ve found the plugin making excessive or broken API calls. Replace it or contact its developer for support.
  3. Increase timeout and memory limits. Ask your host to raise the PHP max_execution_time and memory limit, or add set_time_limit(300); to wp-config.php and php_value max_execution_time 300 to .htaccess. Timeouts are often a symptom of slow processing rather than a blocked connection.
  4. Make sure your server software is current. On the Site Health โ†’ Info โ†’ Server tab, check your PHP version (7.4 minimum, 8.x recommended), cURL version, and OpenSSL version. If any are outdated, ask your hosting provider to update them โ€” this single step resolves many stubborn cURL 28 cases.
  5. Fix SSL and DNS issues. Ensure your site’s URL is consistent (all https:// with or without www, not mixed) using Settings โ†’ General, and confirm your SSL certificate is valid. Switching your server’s DNS resolvers to Cloudflare (1.1.1.1) or Google (8.8.8.8) can also clear DNS-related timeouts.
  6. Contact your hosting provider. If everything above checks out, the block is almost certainly server-side: a restrictive outbound firewall, a proxy your server sits behind, or loopback requests disabled entirely. Ask them to whitelist outbound requests to WordPress.org and your key services, and to confirm loopback requests are allowed. Consider KamiWeb’s plugin resources for tools that monitor your site’s health going forward.

Conclusion

The cURL error 28 fix usually comes down to unblocking something: a firewall, a misbehaving plugin, or an outdated server component. Disable the firewall and plugins to isolate the cause, update your PHP and cURL stack, and let your host handle any server-level blocks. Once Site Health reports clean loopback and REST API checks, your updates, webhooks, and API integrations will run reliably again. Explore more fixes at KamiWeb.