douguizhuang8276 2016-06-12 08:59
浏览 42
已采纳

W3 Total Cache发出Server 500错误

I have a website which runs on wordpress, Every other plugin on the website works fine except W3 Total cache, Every time i enable any of its feature, the site goes down giving me a server 500 error.

I tried every method available online about the issue like removing lines of browser caching code on .htaccess , checking permissions on wp-content folder and plugins folder & uploads folder, removing the installation completely and installing it back again, using a dev build of W3 total cache.

Basically it doesnt occur with only W3 total cache, No caching plugins works and gives out the same error. I tried deleting the advanced-cache.php file that gets created in wp-content once i save the settings on the cache plugin and the site gets back up again, but once i save the options on the cache plugin again, the issue keeps occuring again.

Im running on LAMP stack on Ubuntu 14.04, Php5 , I checked the error log and this is all its gives out :

[:error] [pid 15548] [client 128.199.153.33:47477] PHP Fatal error:  Call to a member function get() on a non-object in /home/admin/web/avaskart.mv/public_html/wp-shop/wp-includes/cache.php on line 123

I tried replacing the cache.php with a new cache.php from a new wordpress download. It didn't help either.

  • 写回答

1条回答 默认 最新

  • dongshang5862 2016-11-15 03:21
    关注

    Installing ZendOpcache resolved this problem for me

    yum install php-pecl-zendopcache
    

    How to install zend opcache on CentOS 6

    To check if opcache is already installed you can use "php -v"

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部