Wordpress/站点运行状况/REST API错误/环回错误



你好吗?当我使用本机WordPress网站健康功能时,我遇到了两个错误。

Your site could not complete a loopback request
Loopback requests are used to run scheduled events, and are also used by the built-in editors for themes and plugins to verify code stability.
The loopback request to your site failed, this means features relying on them are not currently working as expected.
Error: cURL error 35: OpenSSL SSL_connect: Connection reset by peer in connection to mydomain.com:443 (http_request_failed)

The REST API encountered an error
The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages.
The REST API request failed due to an error.
Error: cURL error 35: OpenSSL SSL_connect: Connection reset by peer in connection to mydomain.com:443 (http_request_failed)

已经做了:

  • 我禁用了所有插件
  • 我更改为默认主题
  • 我在whm上禁用了CSF和ModSecurity

但没有成功。我该如何解决此问题?

我在本地开发环境中遇到了同样的两个关键问题。

我的WordPress网站与默认地址'http://localhost:8000'在本地docker容器中运行,在将extra_hosts部分添加到docker-compose.yml后,问题解决了。

这是正在工作的docker-compose.yml

version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
extra_hosts:
- "localhost:172.18.0.1"
volumes:
db_data: {}

请注意,172.18.0.1是默认的docker网关。

我自己在托管WordPress时遇到了这个问题。

这是由我的网络设置引起的。如果你使用NAT或你自己的DNS,你将需要做NAT反射或拆分DNS。

您的最佳选择是拆分DNS。(您可以根据自己的网络服务器查找如何做到这一点。(

如果使用PFSense,您可以从NetGate找到更多信息。这将解决您的问题。或者希望能给你指明正确的方向。

https://docs.netgate.com/pfsense/en/latest/nat/reflection.html

最新更新