Class ‘W3_Config’ not found

  • A+

I upgraded the plugin W3 Total Cache to the latest 0.9.5 version, then my Website could not work anymore.

I checked the error log and got below error message:

Because I updated the OS just before the plugin upgrade, I guessed maybe some file permissions were modified.
I spent more than one hour to check the file permission issue, and it turned out to be a wrong direction totally.

Finally I began to check the PHP class issue, and found after the upgrade of W3 Total Cache, some methods or functions had been changed.
I got some examples from the PHP code files, and updated the class-cache-smash.php as below:

Then I activated the WPtouch Mobile Plugin again, and it worked well.

Note: Make a backup for any change!


:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: