An unexpected error occurred. Something may be wrong with WordPress.org or this server's configuration (cURL error 6/28)
WordPress cannot reach api.wordpress.org for updates, plugin search or Site Health.
An unexpected error occurred. Something may be wrong with WordPress.orgcURL error 6 api.wordpress.orgCould not resolve host api.wordpress.orgcURL error 28 wordpress Meaning
The server blocks outgoing connections, DNS fails or the host's firewall stops cURL. WordPress shows the cURL error number in Site Health.
Common causes
- DNS resolution failing on the server
- Outbound firewall or proxy
WP_HTTP_BLOCK_EXTERNALset- Old cURL/OpenSSL
⚡ Quick fix
- Test from the server:
curl -I https://api.wordpress.org - Fix DNS (resolv.conf) or open outbound 443
- Remove
WP_HTTP_BLOCK_EXTERNALor whitelist hosts
Detailed fix by platform
wp-config.php
define('WP_HTTP_BLOCK_EXTERNAL', false);and check Tools → Site Health
How to diagnose
- Reach — curl works?
- DNS — Resolves?
- Constant — Block external set?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in WordPress
- Critical error WordPress: There Has Been a Critical Error on This Website
- Installation failed: Could not create directory WordPress: Installation failed: Could not create directory (plugin/theme install or update)
- Call to undefined function create_function() WordPress on PHP 8: Fatal error: Uncaught Error: Call to undefined function create_function() / each()
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 2 Dec 2026