繁体   English   中英

未连接(cURL 错误 7:无法连接到 my.elementor.com 端口 443:连接被拒绝) Wordpress - elementor

[英]Not connected (cURL error 7: Failed to connect to my.elementor.com port 443: Connection refused) Wordpress - elementor

下午好,有人可以帮我解决这个问题。 我有我的本地 wordpress 网站,该网站工作正常并已连接到图书馆。 当我将它迁移到我的托管站点时,它在 elementor / System Information 部分中不起作用我收到此消息Not connected (cURL error 7: Error connecting to my.elementor.com port 443: Connection refused)我不能的事实解决它,我希望您支持我找到原因并能够提供解决方案。

在此处输入图像描述

我以前没有遇到过这种情况,但是您可以尝试停用(不删除)您拥有的当前 elementor 插件,然后从 wordpress 下载一个新插件。 然后将 Zip 文件解压到 public-html/wp-content/plugins

If you can't get $wp_filesystem because you are not in the admin environment (eg if you are using REST API from wordpress, which is not an "admin" environment), then you can use php's native file_get_contents to replace $wp_filesystem->获取内容()。 您需要传递给 file_get_content() 的参数是 localhost:8080 之后的字符串,例如对于这个本地文件:

http://localhost:8080/wp-content/uploads/2021/11/imagexyz.jpeg

您可以通过以下方式访问它:

$image_content = file_get_contents('wp-content/uploads/2021/11/imagexyz.jpeg');

暂无
暂无

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

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