簡體   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