wp-super-cache 2232 Warning failed to open stream: Permission denied 错误解决办法
快乐学习

wordpress  WP Super Cache 更新到 Version: 1.5.8 后出现如下 错误:

Warning: fopen(/wordpress/wp-content/1592575523.php): failed to open stream: Permission denied in /wordpress/wp-content/plugins/wp-super-cache/wp-cache.php on line 2232

这是由于这个目录没有写入权限造成的

打开文件:/wordpress/wp-content/plugins/wp-super-cache/wp-cache.php

2231行:$tmp_file = dirname( $my_file ) . ‘/’ . mt_rand() . ‘.php’;

办法:

改到可写的目录:$tmp_file = dirname( $my_file ) . ‘/cache/’ . mt_rand() . ‘.php’;

 

如果有更好的办法欢迎在本文下留言。

 

扫码或长按二维码支付
分享按钮

发表评论