WordPress cURL Error 28: 5 Easy Ways to Fix Timeouts

Affiliate Disclosure: Some links on this page are affiliate links. If you purchase through our links, we may earn a commission at no extra cost to you.

Last updated: December 5, 2026 · Reading time: about 10 minutes

WordPress cURL error 28 means a request that WordPress made through cURL timed out before the remote server answered. Fix it by raising the request timeout, confirming your server can reach that host, and clearing the DNS, IPv6 or proxy problem that makes the connection hang.

WordPress Site Health Server tab showing the cURL version and OpenSSL build
WordPress Site Health, Server tab, showing the cURL version PHP uses on this site. Read December 5, 2026.

Key takeaways

  • Error 28 is a timeout, not a refusal. Something accepted the connection slowly or not at all, and PHP gave up waiting.
  • It shows up during plugin and theme updates, in Site Health, in WP-Cron and in any plugin that calls an external API.
  • The default timeout in the WordPress HTTP API is short, and one slow host can fail a whole update run.
  • IPv6 is a common hidden cause: the server has an IPv6 address, the route is broken, and every connection stalls until it times out.
  • A timeout raised to 30 seconds hides a real network problem rather than fixing it. Find the host that stalls first.
WordPress cURL error 28: 5 easy ways to fix request timeouts

What does cURL error 28 mean?

The message is usually cURL error 28: Connection timed out after 10000 milliseconds or Operation timed out after 30001 milliseconds with 0 bytes received. cURL is the library WordPress uses to fetch remote URLs through the HTTP API, and error 28 is its code for a timeout. The number after the message is how long it waited.

Two different things produce it. The connection phase can hang, which means the server never answered the TCP handshake. Or the connection opened and the remote server never sent data. The first points at DNS, firewall or IPv6; the second points at a slow or overloaded remote host.

Where does WordPress curl error 28 appear?

Because every outbound request goes through the same library, the error turns up in several places that look unrelated:

  • Plugin, theme and core updates that end with Download failed. cURL error 28: Connection timed out.
  • Tools → Site Health, where the HTTPS and communication-with-wordpress.org tests fail.
  • WP-Cron jobs that call an external service and never finish.
  • Any plugin that talks to an API: payment gateways, email delivery, SEO tools, backups to remote storage.
  • The block editor when it tries to load a pattern or an embed from a remote site.
Steps to trace a WordPress cURL error 28 timeout
Find the host that stalls before you change numbers.

How do you find which host is timing out?

Reproduce the request outside WordPress so you can see the host and the timing. A terminal on the server is the fastest route; if you only have wp-admin, use Site Health and the plugin’s own log.

  1. Read the full error. It usually names the URL or the plugin. If it does not, check the PHP error log.
  2. Test from the server. Run curl -I -m 20 https://api.wordpress.org over SSH. If that hangs, the problem is the server’s network, not WordPress.
  3. Test the exact URL from the error message the same way. A single unreachable host is a different problem from all hosts failing.
  4. Compare IPv4 and IPv6. Run curl -4 and curl -6 against the same host. If IPv4 works and IPv6 hangs, you have found the cause.
  5. Check the firewall and proxy. Ask your host whether outbound connections on port 443 are filtered, and whether a proxy is required.

How to raise the WordPress request timeout

Increase the timeout for the request that fails, either in the call itself or with the http_request_args filter. Raising it buys time; it does not repair a broken route.

  • In your own code: pass a timeout argument, as in wp_remote_get( $url, array( ‘timeout’ => 30 ) ). The HTTP API handbook documents the argument.
  • For every request: hook http_request_args in a small plugin and set a higher default timeout. Keep it reasonable, since a long timeout means a slow admin page.
  • At the cURL level: CURLOPT_CONNECTTIMEOUT controls the connection phase and CURLOPT_TIMEOUT the whole transfer. A long overall timeout with a short connect timeout fails fast when a host is down.
  • For updates specifically: some hosts throttle outbound requests during peak hours. Retry the update later before you change code.

How do you fix the DNS and IPv6 causes?

If the server resolves the host to an IPv6 address it cannot actually reach, every request waits for that attempt to fail. Disabling IPv6 for outbound cURL, or fixing the route, clears the error at once.

  • Check whether the host has an AAAA record and whether your server has a working IPv6 route.
  • Ask your host to disable IPv6 on the container or VM if the route is broken.
  • If you run your own server, prefer a resolver you trust in /etc/resolv.conf and test with dig.
  • A wrong system clock also breaks HTTPS requests in confusing ways. Confirm the time is correct.
Checklist for WordPress update failures with cURL error 28
One slow host fails a whole batch.

Why does it happen during plugin and theme updates?

Updates download files from wordpress.org and from plugin vendors, so an update run makes many outbound requests in a row. One slow host, or a firewall that rate limits them, is enough to produce Download failed. cURL error 28 in the middle of the list.

  • Update one item at a time so you can see which host fails.
  • Run updates from WP-CLI, where you get a clearer message and can retry a single plugin.
  • If downloads fail consistently, ask the host to allow outbound HTTPS to downloads.wordpress.org and api.wordpress.org.
  • Check the disk as well. A full disk produces its own confusing download errors.
Table of cURL error codes and their causes in WordPress
Each code needs a different fix.

How do you tell error 28 from other cURL errors?

The code narrows the cause quickly:

  • 28: timed out. Network, DNS, IPv6 or a slow remote host.
  • 6: could not resolve host. DNS is broken on the server.
  • 7: failed to connect. A firewall, a closed port or the wrong address.
  • 35: SSL connect error. A TLS version, certificate or outdated cURL problem.
  • 60: certificate cannot be authenticated. The server’s CA bundle is out of date.

Each of those needs a different fix, so read the number before you raise the timeout. A 35 will not go away with more seconds.

When is the remote site the problem?

Sometimes nothing on your server is wrong and the service you call is down or slow. Test the same URL from another network, check the vendor’s status page, and look at whether the failure started after their last release. In that case the fix is on their side, and a timeout plus a retry with backoff is the right behaviour for your code.

PHP manual page for curl_setopt and its timeout options
PHP manual, curl_setopt reference page. Read December 5, 2026.

Frequently asked questions

Is cURL error 28 dangerous?

No. It is a failed outbound request. The risk is indirect: a failed backup to remote storage, a missed email, or a plugin update that did not complete.

Does the error mean my host blocks outbound connections?

Possibly. Some hosts filter outbound HTTPS. Test with curl from the server and ask support whether port 443 is open.

Will increasing max_execution_time fix it?

Not usually. Error 28 comes from the cURL timeout inside the request, which is shorter than PHP’s execution limit. Our guide to WordPress maximum execution time exceeded covers the other case.

Why does it only happen sometimes?

Intermittent timeouts point at a flaky route, an overloaded remote host, or IPv6 failing only some of the time. Log the URL and the time of each failure.

Can a plugin cause error 28?

A plugin that calls a slow or dead API can. Deactivate plugins one at a time, or check Query Monitor to see which request is hanging.

Does a firewall plugin block outbound requests?

Some security plugins restrict outbound connections and loopback requests. Check their settings if the errors started right after you installed one.

Does error 28 affect SEO?

Only when it breaks something visitors or crawlers use, such as sitemap generation, scheduled publishing or a cache warm-up. Fix it before it turns into missing pages.

Sources and further reading

Summary

WordPress cURL error 28 is a timeout on an outbound request. Find the host that stalls, test it from the server over IPv4 and IPv6, fix the route, DNS or firewall, and only then raise the timeout for the request that needs it. If updates are the thing that fails, run them one at a time or from WP-CLI. Related server errors are covered in WordPress 504 gateway timeout and WordPress 413 request entity too large.

About the author: Mo Abdlhamid works on websites and online business in Egypt and writes the guides on CMS Ideas. This guide is based on the WordPress HTTP API and PHP cURL documentation linked above. We did not run new tests for it. Last reviewed December 5, 2026.

Leave a Comment