首页 » 后端 » Wordpress » 正文

WordPress安装主题超时的解决办法

发布者:站点默认
2010/12/31 浏览数(23,757) 分类:Wordpress WordPress安装主题超时的解决办法已关闭评论

说明:

WordPress安装主题时出现类似下面的提示时的解决办法:

错误提示:

Downloading update from http://wordpress.org/××××××.zip.
Download failed.: Operation timed out after 60000 milliseconds with 641464 bytes received
Installation Failed.

Downloading update from http://wordpress.org/××××××.zip.Download failed.: Operation timed out after 60000 milliseconds with 641464 bytes receivedInstallation Failed.

解释:

这段英文的意思是下载文件超时,由于你的主机网速比较慢,建议将这一时间调的长一些,建议设置成600秒(600000毫秒)应该会成功。

解决办法:

编辑:wp-admin/includes/file.php

查找:

$response = wp_remote_get($url, array(‘timeout’ => 300));

操作:将 300 改为 600或更大 。

<完>

点击返回顶部
  1. 留言
  2. 联系方式