[英]WordPress error on localhost, XAMPP: “Installation failed: Download failed. No working transports found”
自从我在Windows 10
上从PHP 7.2
到PHP 7.4
更新Apache
后,我遇到了问题
我以为我的一切都在运行。 但是现在当我尝试安装插件时,WordPress 告诉我: "Installation failed: Download failed. No working transports found."
我做了一些研究,发现我需要在我的php.ini
中取消注释extension=curl
和extension=openssl
,我这样做了。 但是(重新启动XAMPP
后)它仍然无法正常工作。
我还找到了要添加的信息:
Below this line: #LoadModule xml2enc_module modules/mod_xml2enc.so
# load curl and open ssl libraries
LoadFile “C:\php\libeay32.dll”
LoadFile “C:\php\ssleay32.dll”
LoadFile “C:\php\libssh2.dll”
And above this line: <IfModule unixd_module>
在 Apache 配置文件中。 但由于我只有文件libssh2.dll
, Apache 在添加这些行后不会启动。
编辑:
我确实echo 'Curl: ', function_exists('curl_init')? 'Enabled': 'Disabled';
echo 'Curl: ', function_exists('curl_init')? 'Enabled': 'Disabled';
在 xamp/htdocs 中,它告诉我突然 cURL 被禁用......
我还能尝试什么?
好吧,没关系,我修好了。 事实证明
extension_dir = "ext"
在我的php.ini
中也被禁用。 删除后; 一切正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.