At a glance......
User Review( vote)
How to fix a cURL error 28: Connection timed out/Query Monitor is the developer tools panel for WordPress. It enables debugging of database queries, PHP errors, hooks and actions, block editor blocks, enqueued scripts and stylesheets, HTTP API calls, and more.
It includes some advanced features such as debugging of Ajax calls, REST API calls, and user capability checks. It includes the ability to narrow down much of its output by plugin or theme, allowing you to quickly determine poorly performing plugins, themes, or functions.
Query Monitor focuses heavily on presenting its information in a useful manner, for example by showing aggregate database queries grouped by the plugins, themes, or functions that are responsible for them. It adds an admin toolbar menu showing an overview of the current page, with complete debugging information shown in panels once you select a menu item.
How to fix a “cURL error 28: Connection timed out” in WordPress?
This quick article helps your solve a cURL error 28 displayed in your WordPress admin :
cURL error 28: Connection timed out after n milliseconds
cURL error 28: Operation timed out after n milliseconds with 0 out of 0 bytes received
This problem is a very common server related issue. In most of the cases not created by a particular theme or plugin, nor by WordPress.
How to fix it ?
The first thing to do is to update your WordPress to the latest version if not already done.
Then if the problem is still there, contact your hosting company and ask the hosting support team to check the following points :
- Make sure your server is running a recent version of PHP and the cURL library.
- Try to increase your Server Memory Limit settings.
- The cURL error can be a DNS related issue. Your hosting company might need to switch DNS configuration to OpenDNS: https://www.howtogeek.com/164981/how-to-switch-to-opendns-or-google-dns-to-speed-up-web-browsing/
- Ask your host if there is some limitation with wp-cron, or if loopback is disabled.
- Ask your host if there a firewall or security module (e.g. mod_security ) that could block the outgoing cURL requests.
You can also install the Query Monitor plugin and check the status of the HTTP API Calls in the admin page where the error is displayed.
If you are experiencing this issue or other ones when updating your theme, we have gathered a list of common problems ( with solutions ) that can occur when updating your theme.