Can’t Login to your WordPress Dashboard after W3 Total Cache update? So here is the solution to fix this issue.
After updating W3 Total Cache I got the following error message
“Fatal error: Uncaught exception ‘FileOperationException’ with message ‘<strong> /home/geekyard/ public_html/wp-content/w3tc-config/ master.php</strong> could not be created, please run following command:<br /> <ul><li> <strong style=”color: #f00;”> chmod 777 /home/ geekyard/public_html/wp-content/cache/ tmp</strong></li> <li><strong style=”color: #f00;”>chmod 777 / home/geekyard/public_html/ wp-content/w3tc-config</strong></li>’ in /home/ geekyard/public_html/wp-content/plugins/ w3-total-cache/inc/functions/ activation.php:127 Stack trace: #0 /home/geekyard/ public_html/wp-content/plugins/ w3-total-cache/ lib/W3/ ConfigWriter.php(159): w3_throw_on_ write_error(‘/home/ geekyard/…’, Array) #1 /home/geekyard/ public_html/ wp-content/plugins/w3-total-cache/lib/W3/ Config.php(71): W3_ConfigWriter-> save() #2 /home/geekyard/ public_html/ wp-content/plugins/w3-total-cache/lib/W3/CloudFlare.php(174): W3_Config-> save() #3 /home/geekyard/ public_html/ wp-content/plugins/w3-total-cache/lib/ W3/Plugin/CloudFlare.php(52): W3_CloudFlare->update_ip_ranges() #4 /h in /home/geekyard/public_html/wp-content/plugins/w3-total-cache/inc/functions/activation.php on line 127″
Steps to Fix Fatal error after Total Cache update
- Login to your FTP account and navigate to wp-content/plugins/w3-total-cache/inc/functions/activation.php
- Comment out line 127 in “activation.php”
- At beginning of line 127 type: /** Create a blank line 128 and type: */ as shown below
/** throw new FileOperationException($error, ‘create’, ‘file’, $path);
*/
- Save activation.php file.
- Your dashboard will be back – Deactivate W3 Total Cache in your plugins section.
- That’s it 🙂