douguizhuang8276 2016-06-12 16: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 11: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"

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

报告相同问题?

悬赏问题

  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效
  • ¥15 再不同版本的系统上,TCP传输速度不一致
  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程