简体   繁体   English

无法建立与WordPress.org的安全连接,请与您的服务器管理员联系

[英]Could not establish a secure connection to WordPress.org Please contact your server administrator

I have uploaded basic wordpress through FTP server (WinSCP). 我已经通过FTP服务器(WinSCP)上传了基本的wordpress。 Later I m trying to install plug ins - When I click Add new Button under Plugin Menu, I am getting below error. 稍后我尝试安装插件-单击“插件菜单”下的“添加新按钮”时,出现以下错误。

Warning: An unexpected error occurred. 警告:发生意外错误。 Something may be wrong with WordPress.org or this server's configuration. WordPress.org或此服务器的配置可能有问题。 If you continue to have problems, please try the support forums. 如果您仍然遇到问题,请尝试支持论坛。 (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /---/----/---/wp-admin/includes/plugin-install.php on line 169 (WordPress无法建立与WordPress.org的安全连接。请与您的服务器管理员联系。)在第169行的/---/----/---/wp-admin/includes/plugin-install.php中

I gone thru many forums and tried below. 我经过许多论坛,并在下面尝试过。
1. CURL check - Its working fine 1. CURL检查-工作正常
2. /etc/host entry for api.wordpress.org public IP 2. api.wordpress.org公共IP的/ etc / host条目
3. 80 port open 3. 80端口开放
everything seems to be fine in my case. 就我而言,一切似乎都很好。 still facing same issue. 仍然面临着同样的问题。 Anyone has idea on this? 有人对此有想法吗? is this something related to SSL? 这和SSL有关吗? If so please advice. 如果是这样,请指教。

I tried to configure curl to use IPv4, by adding curl_setopt($this->handle, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); 我试图通过添加curl_setopt($this->handle, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);将curl配置为使用IPv4 curl_setopt($this->handle, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); in wp-includes/Requests/Transport/cURL.php after the handle is created in the constructor. 在构造函数中创建句柄之后,在wp-includes / Requests / Transport / cURL.php中。 Both CURLOPT_IPRESOLVE and CURL_IPRESOLVE_V4 are defined, so it had worked for me CURLOPT_IPRESOLVE和CURL_IPRESOLVE_V4均已定义,因此对我有用

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM