简体   繁体   English

Wordpress/Godaddy - cURL 错误 28:操作在 10001 毫秒后超时,收到 0 个字节

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

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.我已经关注了这里的大部分问题,尝试通过 .htaccess 和 php.ini 文件更改 memory_limit、upload_max_filesize、post_max_size、max_execution_time、max_input_time,但我仍然遇到相同的错误。 Upon asking Godaddy support they are simply giving a scripted response.在向 Godaddy 寻求支持后,他们只是给出了一个脚本化的回应。 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.目前,GoDaddy 支持建议在 php.ini 中添加以下配置并停用插件即可解决。

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.但是,此错误是从新安装 WordPress 时开始的。 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网站 - 247btl.com

卷曲错误 28

For Hostinger go to your Hosting Dashboard, then open PHP configuration option from Advanced menu(see screenshot below)-对于 Hostinger go 到您的托管仪表板,然后从高级菜单中打开 PHP 配置选项(请参见下面的屏幕截图)-

在此处输入图像描述

After that goto PHP Options tab(see screenshot below)-之后转到 PHP 选项选项卡(见下面的截图)-

在此处输入图像描述

Then, Scroll down and change the MAX Execution value to 300(see screenshot below).然后,向下滚动并将 MAX Execution 值更改为 300(参见下面的屏幕截图)。 Here 300 = 5 minutes.这里 300 = 5 分钟。 And after changing the value save these settings and this problem will get solved.更改值后保存这些设置,此问题将得到解决。

在此处输入图像描述

After a lot of playing around with php settings, this error was solved with the following PHP settings:经过大量使用 php 设置后,通过以下 PHP 设置解决了此错误:

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.我相信问题是由于 max_execution_time 设置。 Most of the guides suggested to increase it to 1000 along with increasing memory_limit, but that would lead to long load time.大多数指南建议将其增加到 1000,同时增加 memory_limit,但这会导致加载时间过长。 Tried it on a hostinger hosted website as well and it seems to work very well.也在托管商托管的网站上尝试过,它似乎工作得很好。

try to update your WordPress to the latest version if not already done.如果尚未完成,请尝试将您的 WordPress 更新到最新版本。

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. 您的服务器正在运行最新版本的 PHP 和 cURL 库。

  1. increase the Server Memory Limits settings.增加 Server Memory 限制设置。

  2. The cURL error can be a dns related issue. cURL 错误可能是 dns 相关问题。 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/您的托管公司可能需要将 dns 配置切换到 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.询问您的主机 wp-cron 是否有一些限制,或者是否禁用了环回。

  4. Ask your host if there a firewall or security modules (eg mod_security ) that could block the outgoing cURL requests.询问您的主机是否有防火墙或安全模块(例如 mod_security )可以阻止传出的 cURL 请求。

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.您还可以在显示错误的管理页面中安装 Query Monitor 插件并检查 HTTP API Calls 的状态。

In my case this was caused by the plugin "Contact Form by BestWebSoft".就我而言,这是由插件“BestWebSoft 的联系表”引起的。

If you find yourself in the same situation you have to disable the plugin one by one and refresh the page /wp-admin/site-health.php to check if the error is still there.如果您发现自己处于相同的情况,则必须一个一个禁用该插件并刷新页面/wp-admin/site-health.php以检查错误是否仍然存在。

As explained here Getting "An active PHP session was detected" critical warning in wordpress this is due to a plugin badly developed.正如这里所解释的,在wordpress 中出现“检测到活动的 PHP session”严重警告,这是由于插件开发不当造成的。

Be aware that this issue can be caused by the use of the php session_start function.请注意,使用 php session_start function 可能会导致此问题。 We had an issue where a developer had written the following.我们遇到了一个问题,开发人员编写了以下内容。

add_action('init', function () 
    { 
        if (!session_id()) { session_start(); } 
    });

This will kill the loopback and also disrupt REST API communications.这将终止环回并中断 REST API 通信。 This results in the cURL error 28 mentioned above.这会导致上面提到的 cURL 错误 28。 Sometimes it is not a complicated reason for the failure.有时,失败的原因并不复杂。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 WAMP/Wordpress - cURL 错误 28:操作在 10001 毫秒后超时,收到 0 个字节 - WAMP/Wordpress - cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received cURL 错误 28:操作在 2000 毫秒后超时,收到 23000995 个字节中的 7276200 个 - cURL error 28: Operation timed out after 2000 milliseconds with 7276200 out of 23000995 bytes received 下载失败。 cURL 错误 28:连接在 10001 毫秒后超时 - Download failed. cURL error 28: Connection timed out after 10001 milliseconds cURL 错误 #:操作在 50007 毫秒后超时,收到 272389 个字节中的 30461 个 - cURL Error #:Operation timed out after 50007 milliseconds with 30461 out of 272389 bytes received php cURL操作在120308毫秒后超时,X收到-1个字节 - php cURL Operation timed out after 120308 milliseconds with X out of -1 bytes received Curl 总是超时,操作在 30001 毫秒后超时,收到 0 个字节 - Curl always timeout, Operation timed out after 30001 milliseconds with 0 bytes received LaravelFacebookSDK操作在0毫秒后超时,收到0个字节中的0个 - LaravelFacebookSDK Operation timed out after 0 milliseconds with 0 out of 0 bytes received curl php操作在120000毫秒后超时,收到234570字节 - curl php Operation timed out after 120000 milliseconds with 234570 bytes received cURL 错误 28:5001 毫秒后解析超时 - cURL error 28: Resolving timed out after 5001 milliseconds cURL 错误 28 - x 毫秒后连接超时 - cURL error 28 - Connection timed out after x milliseconds
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM