wordpress - WP-Super-Cache 激活错误

标签 wordpress caching plugins

我必须在 WordPress 项目上设置缓存,该项目已经在机构中处于“支持模式”一段时间。

插件 WP Super Cache 已经安装,所以我激活它,设置它。

我在开发模式下在本地工作,并且该项目有一个 preprod 和一个 prod 环境。

当我激活它时,后台出现以下错误消息:

Warning: include(/var/www/xx/xx/xx/xx/xx/xx/wp-content/plugins/wp-super-cache/wp-cache-base.php): failed to open stream: No such file or directory in /var/www/wp-content/plugins/wp-super-cache/wp-cache.php on line 65

Warning: include(): Failed opening ‘/var/www/xx/xx/xx/xx/xx/xx/wp-content/plugins/wp-super-cache/wp-cache-base.php’ for inclusion (include_path=’.:/usr/share/php:/usr/share/pear’) in /var/www/wp-content/plugins/wp-super-cache/wp-cache.php on line 65

Warning: include_once(/var/www/xx/xx/xx/xx/xx/xx/wp-content/plugins/wp-super-cache/ossdl-cdn.php): failed to open stream: No such file or directory in /var/www/wp-content/plugins/wp-super-cache/wp-cache.php on line 82

Warning: include_once(): Failed opening ‘/var/www/xx/xx/xx/xx/xx/xx/wp-content/plugins/wp-super-cache/ossdl-cdn.php’ for inclusion (include_path=’.:/usr/share/php:/usr/share/pear’) in /var/www/wp-content/plugins/wp-super-cache/wp-cache.php on line 82



查看第 65 和 82 行的 wp-cache.php 文件,它说:
include(WPCACHEHOME . 'wp-cache-base.php');

Path ‘dirname(FILE).’/…wp-cache-base.php’ not found Include expression is not resolved


include_once( WPCACHEHOME . 'ossdl-cdn.php' );

Path ‘dirname(FILE).’/…ossdl-cdn.php’ not found Include expression is not resolved



所以我在考虑改变路径。但是,这让我感到困扰,因为我担心当插件必须更新时,此操作可能会成为故障排除的原因。

我不知道如何解决它。
卸载并重新安装插件?
使用其他插件来管理缓存?

预先感谢您的回答。祝你今天过得愉快!

最佳答案

WP Super Cache 将以下行放入您的 wp-config.php 文件。从您的 中删除该行wp-config.php 文件并重新安装并重新激活插件。

define( ‘WPCACHEHOME’, ‘/home/USERNAME/public_html/wp/wp-content/plugins/wp-super-cache/’ ); //Added by WP-Cache Manager

将我的 Wordpress 目录移动到我网站的根目录后,我遇到了同样的问题。如果您遇到问题并且无法停用错误插件,请转到您的/wp-content/plugins/wp-super-cache 并删除或重命名该目录。这将手动停用它,以便您可以安装新实例。

关于wordpress - WP-Super-Cache 激活错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41977308/

相关文章:

ios - Flutter - 不允许操作(在项目 'url_launcher' 的目标 'Pods' 中)

wordpress - qTranslate 自动重定向不适用于单个帖子

php - WordPress 更改永久链接 404 消息 - 301 重定向

php - 从 WordPress 主题覆盖 wedevs-dokan-plugin 模板文件

jsp - Glassfish 2.1 在哪里存储缓存的 JSP?

android - 在背景上使用 Picasso 加载多个图像

android - 对 'posix_fadvise' 的 undefined reference

java - 如何将 Minecraft bukkit 插件的玩家实体设置为 Model()

php - Wordpress 插件 - 按帖子数量对用户进行排名

wordpress - 用一种语言搜索,但转到另一种语言的网站