WordPress卷曲超时并显示“已永久移动”

时间:2020-12-11 作者:ehammer

我尝试更新到wordpress 5.6,但没有成功。我尝试安装用于脱机更新的插件,但插件安装时出现了相同的错误:

Download failed.: cURL error 28: Connection timed out after 10001 milliseconds

这很奇怪,因为当我使用SSH时,我可以将它正在更新的确切链接卷曲到恰到好处,但它实际上给了我一个问题:

$ curl http://downloads.wordpress.org/release/wordpress-5.6-new-bundled.zip
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
在网站健康页面上,它指出了两个关键问题:

Could not reach WordPress.org
Communicating with the WordPress servers is used to check for new versions, and to both install and update WordPress core, themes or plugins.

Error Your site is unable to reach WordPress.org at 198.143.164.251, and returned the error: cURL error 28: Connection timed out after 10000 milliseconds
Your site could not complete a loopback request


Loopback requests are used to run scheduled events, and are also used by the built-in editors for themes and plugins to verify code stability.

The loopback request to your site failed, this means features relying on them are not currently working as expected.
Error: cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received (http_request_failed)
这很奇怪,因为icmp和端口80可以访问198.143.164.251,但curl似乎也有问题:

$ curl http://wordpress.org/
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
有人能帮我解决这个问题吗?

1 个回复
最合适的回答,由SO网友:tdj 整理而成

对于这两个curl示例,错误在于您的目标是http:而不是https:

添加https 地址,或使用

curl http://downloads.wordpress.org/release/wordpress-5.6-new-bundled.zip -L

-我将遵循重定向

相关推荐

MySQLI_QUERY():MySQL服务器已离开以进行Curl请求

我创建了一个WordPress插件,激活后在jquery Datatable中显示结果。我们正在通过CURL Post获取结果。帖子URL是ASP。Net应用程序。该插件是为在帖子中添加我的短代码后遇到以下错误的客户创建的。客户端使用的是优雅主题的Divi(最新版本),WordPress 5.2.2运行在Apache/PHP 7.2.21上此错误仅显示在添加了快捷码的帖子页面上:警告:mysqli\\u query():MySQL服务器已消失在/homepages/10/d241347454/htdocs