elk*_*kah 7 php wordpress warnings caching
我在后端和前端页面(WordPress)上收到此PHP警告,但无法弄清楚如何修复它:
警告:include(/ home /.../ public_html/wp-content/advanced-cache.php):无法打开流:/home/.../public_html/wp-settings.php中没有此类文件或目录第84行
警告:include():无法打开'/home/.../public_html/wp-content/advanced-cache.php'(include_path ='.:/ usr/lib/php:/ usr/local/lib /第84行的/home/.../public_html/wp-settings.php中的php')
实际上,该目录中没有advanced-cache.php(不确定是否曾经存在),但绝对相同的配置在没有警告的情况下在不同的服务器上运行.
将不胜感激任何帮助.谢谢.
Roh*_*mar 15
我想你已经安装了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'));
Run Code Online (Sandbox Code Playgroud)
为防止出现此错误,您可以将其设置为false
define('WP_CACHE', false);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
14300 次 |
| 最近记录: |