gpt4 book ai didi

php - WordPress - PHP 警告无法打开流 : No such file or directory (advanced-cache. php)

转载 作者:可可西里 更新时间:2023-11-01 13:07:46 25 4
gpt4 key购买 nike

我在后端和前端页面 (WordPress) 上收到此 PHP 警告,但不知道如何解决:

Warning: include(/home/.../public_html/wp-content/advanced-cache.php): failed to open stream: No such file or directory in /home/.../public_html/wp-settings.php on line 84

Warning: include(): Failed opening '/home/.../public_html/wp-content/advanced-cache.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/.../public_html/wp-settings.php on line 84

确实,该目录中没有 advanced-cache.php(不确定是否曾经有过),但完全相同的配置在不同的服务器上运行时没有警告。

将不胜感激任何帮助。谢谢。

最佳答案

我想你已经安装了Advance cache plugin,并且设置了WP_CACHE

define('WP_CACHE', true);
// or may be it is a file like, if so then comment this line,
// below is the statement which need to be commented
// define('WP_CACHE', is_file(__DIR__.'/wp-content/advanced-cache.php'));

为了防止这个错误你可以设置为false,比如

define('WP_CACHE', false);

关于php - WordPress - PHP 警告无法打开流 : No such file or directory (advanced-cache. php),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43406007/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com