解决WordPress自动升级超时Operation timed out after 30
2018-02-21 17:05
976 查看
在自动升级WordPress核心以及WordPress插件或主题的时候,比如avada,the7,betheme等国外主题。往往会因为网络原因导致下载核心或插件的时候超时,从而导致升级失败,此时WordPress会给出如下提示:cURL error 28: Operation timed out after 300005 milliseconds with 48782 out of 5279786 bytes received.
Operation timed out after 30 seconds with ......从提示中我们可以看到WordPress默认给出的超时时限是30秒,我们可以将这个值修改的大一些,使得即使在网速不佳的情况下也可以完成下载。打开 wp-admin\includes\file.php查找如下语句
将其中的30改大,如改成300:
保存即可。新版(4.9以上)//Define the timeouts for the connections. Only available after the construct is called to allow for per-transport overriding of the default.
if ( ! defined('FS_CONNECT_TIMEOUT') )
define('FS_CONNECT_TIMEOUT', 30);
if ( ! defined('FS_TIMEOUT') )
define('FS_TIMEOUT', 30);
Operation timed out after 30 seconds with ......从提示中我们可以看到WordPress默认给出的超时时限是30秒,我们可以将这个值修改的大一些,使得即使在网速不佳的情况下也可以完成下载。打开 wp-admin\includes\file.php查找如下语句
1 | $response = wp_remote_get($url, array('timeout' => 30)); |
1 | $response = wp_remote_get 4000 ($url, array('timeout' => 300)); |
if ( ! defined('FS_CONNECT_TIMEOUT') )
define('FS_CONNECT_TIMEOUT', 30);
if ( ! defined('FS_TIMEOUT') )
define('FS_TIMEOUT', 30);
相关文章推荐
- mongo报错:Timed Out While Waiting For A Server That Matches AnyServerSelector{} After 10000 Ms解决
- php 使用curl 代理访问报错:Operation timed out after 0 milliseconds with 0 out of 0 bytes received
- pip安装python库总提示下载超时read timed out的解决办法
- 解决selenium IDE Timed out after 30000ms问题
- WordPress自动升级插件时需要填写FTP信息的解决
- 学习记录 - ehcache升级检查所带来的connet timed out 解决方法
- pip 安装包时超时(read timed out)问题解决办法
- Python安装pywinauto时遇到error: The read operation timed out解决方法
- Android程序访问网络时The operation timed out错误解决方法
- 【技术支持】Oracle报连接超时,TNS-12535:TNS:operation timed out。WARNING: inbound connection timed out (ORA-3136)
- Axis2调用超时Read timed out的解决办法一则
- WordPress自动升级过程中显示 无法定位WordPress内容目录(wp-content)解决办法
- MAC - 使用 brew 安装东西时出现 curl: (7) Failed connect to downloads.sf.net:443; Operation timed out 的解决办法
- 解决spark程序报错:Caused by: java.util.concurrent.TimeoutException: Futures timed out after [300 seconds]
- 阿里云ECS使用SSH连接CentOS 6.9经常断线的问题解决:OperationTimedOut
- Axis2调用超时Read timed out的解决办法
- Warning: Contact ' ' service notification command timed out after 30 seconds
- msxml3.dll 错误 80072ee2解决方法 The operation timed out
- php 报错:Operation timed out after **
- 安装Tensorflow超时报错:socket.timeout: The read operation timed out