Wordpress/Godaddy - cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

最后都变了- 提交于 2020-05-28 07:48:37

问题


I have followed most of the questions here, tried changing memory_limit, upload_max_filesize, post_max_size, max_execution_time, max_input_time, through .htaccess and php.ini file, but I'm still getting the same error. Upon asking Godaddy support they are simply giving a scripted response. Stating that there is a problem with your plugins, you should deactivate and see.

Currently, GoDaddy support suggested adding the following configuration in php.ini and deactivate the plugins and it will resolve.

memory_limit 5000M
upload_max_filesize 3000M
post_max_size 3000M
max_execution_time 3000
max_input_time 3000

But, this error is been from the time of a fresh WordPress installation. So, will deactivating all the plugins lead to resolutions?. Any suggestions??

Because of this, I'm getting connection timeouts and unable to take a backup through admin.

Also, I'm on shared hosting. Site - 247btl.com


回答1:


try to update your WordPress to the latest version if not already done.

Then if the problem is still there, contact hosting company and ask the hosting support team check following 1. your server are running latest version of PHP and the cURL library.

  1. increase the Server Memory Limits settings.

  2. 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/

  3. Ask your host if there is some limitation with wp-cron, or if loopback is disabled.

  4. Ask your host if there a firewall or security modules (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.




回答2:


After a lot of playing around with php settings, this error was solved with the following PHP settings:

max_execution_time = 30
max_input_time = 300
memory_limit = 128M
post_max_size = 32M
upload_max_size = 32M

I believe the problem was due to max_execution_time settings. Most of the guides suggested to increase it to 1000 along with increasing memory_limit, but that would lead to long load time. Tried it on a hostinger hosted website as well and it seems to work very well.



来源:https://stackoverflow.com/questions/61287927/wordpress-godaddy-curl-error-28-operation-timed-out-after-10001-milliseconds

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!