[英]WordPress error on localhost, XAMPP: “Installation failed: Download failed. No working transports found”
I'm having problems since I updated Apache
on Windows 10
from PHP 7.2
to PHP 7.4
...自从我在
Windows 10
上从PHP 7.2
到PHP 7.4
更新Apache
后,我遇到了问题
I thought I had everything running.我以为我的一切都在运行。 But now when I try to install a plugin, WordPress tells me:
"Installation failed: Download failed. No working transports found."
但是现在当我尝试安装插件时,WordPress 告诉我:
"Installation failed: Download failed. No working transports found."
I did some research and found out that I need to uncomment extension=curl
and extension=openssl
in my php.ini
, which I did.我做了一些研究,发现我需要在我的
php.ini
中取消注释extension=curl
和extension=openssl
,我这样做了。 But (after restarting XAMPP
) it's still not working.但是(重新启动
XAMPP
后)它仍然无法正常工作。
I also found information to add:我还找到了要添加的信息:
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>
in the Apache config file.在 Apache 配置文件中。 But since I only have the file
libssh2.dll
, Apache won't start after adding these lines.但由于我只有文件
libssh2.dll
, Apache 在添加这些行后不会启动。
Edit:编辑:
I did echo 'Curl: ', function_exists('curl_init')? 'Enabled': 'Disabled';
我确实
echo 'Curl: ', function_exists('curl_init')? 'Enabled': 'Disabled';
echo 'Curl: ', function_exists('curl_init')? 'Enabled': 'Disabled';
in xamp/htdocs and it told me that suddenly cURL is disabled...在 xamp/htdocs 中,它告诉我突然 cURL 被禁用......
What else could I try?我还能尝试什么?
Okay, never mind, I fixed it.好吧,没关系,我修好了。 It turns out that
事实证明
extension_dir = "ext"
in my php.ini
was disabled as well.在我的
php.ini
中也被禁用。 After removing the;删除后; everything is working.
一切正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.