高级管理文档

💡 云策文档标注

概述

Loopback 是指服务器或网站尝试连接到自身的过程,WordPress 利用此功能触发定时发布文章和其他由插件或主题引入的定时事件,并在插件或主题编辑器中进行更改时确保网站不崩溃。

关键要点

  • Loopback 用于 WordPress 的定时任务(如 scheduled posts)和插件/主题编辑器的安全检查。
  • Loopback 失败常见于插件或主题冲突,可通过停用所有插件、切换到默认主题(如 Twenty-Something 系列)或使用 Health Check 插件进行排查。
  • 若无法访问管理后台,可通过 SFTP/FTP 或 phpMyAdmin 重置插件文件夹或移除主题文件夹来强制使用默认主题。

代码示例

// 无具体代码示例,文档未提供代码。

注意事项

  • 停用插件时需包括 mu-plugins 文件夹中的插件,可通过重命名文件夹为 mu-plugins-old 来快速停用。
  • 使用 Health Check 插件可在不影响访客的情况下在后台禁用插件和切换主题进行故障排除。

📄 原文内容

A loopback is when your own server or website tries to connect to it self.

WordPress uses this functionality to trigger scheduled posts, and other scheduled events that plugins or themes may introduce.

They are also used when making changes in the Plugin- or Theme-editor, by connecting back to the website and making sure that the changes made does not break your website.

Troubleshooting loopback issues

If you are having problems with scheduled posts or other timed events not running, or seeing Site Health warnings about loopbacks failing, you may want to troubleshoot these.

The most common cause of loopback failures is a plugin or theme conflict, you should start by following the normal troubleshooting steps:

Common troubleshooting steps

  • Deactivating all plugins (yes, all) to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s). If you can’t get into your admin dashboard, try resetting the plugins folder by SFTP/FTP or phpMyAdmin (read How to deactivate all plugins when you can’t log in to wp-admin if you need help). Sometimes, an apparently inactive plugin can still cause problems. Also remember to deactivate any plugins in the mu-plugins folder. The easiest way is to rename that folder to mu-plugins-old.
  • Switching to a Twenty-Something theme to rule out any theme-specific problems. If you can’t log in to change themes, you can remove the theme folders via SFTP/FTP so the only one is twentytwentythree. That will force your site to use it.
  • If you can install plugins, install the plugin Health Check. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.