Title: Fatal error
Last modified: August 20, 2016

---

# Fatal error

 *  [Paul Sutherland](https://wordpress.org/support/users/paul-sutherland/)
 * (@paul-sutherland)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-642/)
 * I tried to upgrade and got this message:
 * “Plugin failed to reactivate due to a fatal error.
 * Fatal error: Uncaught exception ‘FileOperationException’ with message ‘**/home/
   skymania/public_html/wp/wp-content/w3tc-config/master.php** could not be created,
   please run following command:
    - <strong style=”color: #f00;”>chmod 777 /home/skymania/public_html/wp/wp-content/
      cache/tmp
    - <strong style=”color: #f00;”>chmod 777 /home/skymania/public_html/wp/wp-content/
      w3tc-config
    - ‘ in /home/skymania/public_html/wp/wp-content/plugins/w3-total-cache/inc/functions/
      activation.php:127 Stack trace: #0 /home/skymania/public_html/wp/wp-content/
      plugins/w3-total-cache/lib/W3/ConfigWriter.php(159): w3_throw_on_write_error(‘/
      home/skymania/…’, Array) #1 /home/skymania/public_html/wp/wp-content/plugins/
      w3-total-cache/lib/W3/Config.php(71): W3_ConfigWriter->save() #2 /home/skymania/
      public_html/wp/wp-content/plugins/w3-total-cache/lib/W3/CloudFlare.php(174):
      W3_Config->save() #3 /home/skymania/public_html/wp/wp-content/plugins/w3-total-
      cache/lib/W3/Plugin/CloudFlare.php(52): W3_CloudFlare-> in /home/skymania/
      public_html/wp/wp-content/plugins/w3-total-cache/inc/functions/activation.
      php on line 127″
 * But trying to delete the plugin gives this: W3 Total Cache Error: some files 
   appear to be missing or out of place. Please re-install plugin or remove /home/
   skymania/public_html/wp/wp-content/db.php.
 * Not sure what to do. I’m concerned that so many people are reporting the plug-
   in as broken.
 * Paul
 * [http://wordpress.org/extend/plugins/w3-total-cache/](http://wordpress.org/extend/plugins/w3-total-cache/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [els4vents](https://wordpress.org/support/users/els4vents/)
 * (@els4vents)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-642/#post-3469062)
 * [http://wordpress.org/support/topic/i-upgraded-to-the-latest-version-and-lost-the-dashboard?replies=1](http://wordpress.org/support/topic/i-upgraded-to-the-latest-version-and-lost-the-dashboard?replies=1)
 * exactly the same message, but I can not even access dashboard and unistal
 *  [petejoe43](https://wordpress.org/support/users/petejoe43/)
 * (@petejoe43)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-642/#post-3469103)
 * Received a fatal error that completely disabled plug in. Please Help!!
    Plugin
   failed to reactivate due to a fatal error.
 * Fatal error: Uncaught exception ‘FileOperationException’ with message ‘**/home/
   vipvalid/public_html/gunrightsforall.com/wp-content/w3tc-config/master.php** 
   could not be created, please run following command:
    - <strong style=”color: #f00;”>chmod 777 /home/vipvalid/public_html/gunrightsforall.
      com/wp-content/cache/tmp
    - <strong style=”color: #f00;”>chmod 777 /home/vipvalid/public_html/gunrightsforall.
      com/wp-content/w3tc-config
    - ‘ in /home/vipvalid/public_html/gunrightsforall.com/wp-content/plugins/w3-
      total-cache/inc/functions/activation.php:127 Stack trace: #0 /home/vipvalid/
      public_html/gunrightsforall.com/wp-content/plugins/w3-total-cache/lib/W3/ConfigWriter.
      php(159): w3_throw_on_write_error(‘/home/vipvalid/…’, Array) #1 /home/vipvalid/
      public_html/gunrightsforall.com/wp-content/plugins/w3-total-cache/lib/W3/Config.
      php(71): W3_ConfigWriter->save() #2 /home/vipvalid/public_html/gunrightsforall.
      com/wp-content/plugins/w3-total-cache/lib/W3/CloudFlare.php(174): W3_Config-
      >save in /home/vipvalid/public_html/gunrightsforall.com/wp-content/plugins/
      w3-total-cache/inc/functions/activation.php on line 127
 *  [xgenblogger](https://wordpress.org/support/users/xgenblogger/)
 * (@xgenblogger)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-642/#post-3469162)
 * Solution:
 * Go to /wp-content/plugins/w3-total-cache/inc/functions/
    Look for activation.
   php and Open it in code editor through your Cpanel or FTP access.
 * At beginning of line no. 127 type: /* and at the end type */
 * it looks like –
 * /*throw new FileOperationException($error, ‘read’, ‘file’, $path);*/
 * Save the file.
 * Now you can login to dashboard, deactivate w3 total cache plugin.
 * Now remove the /* and */ you added before,
    save the file again.
 * Go to dashboard activate plugin and you’re good to go
 * [Via] member VivaWP, Thread: [http://wordpress.org/support/topic/w3tc-0928-killed-my-backend](http://wordpress.org/support/topic/w3tc-0928-killed-my-backend)
 *  [digitalsea](https://wordpress.org/support/users/birdsong/)
 * (@birdsong)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-642/#post-3469233)
 * Thanks for answer xgenblogger, I followed your solution and worked!
 *  [Q Ball](https://wordpress.org/support/users/qball/)
 * (@qball)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-642/#post-3469239)
 * Thank you xgenblogger. worked like a charm.
 *  [peter devine](https://wordpress.org/support/users/peter-devine/)
 * (@peter-devine)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-642/#post-3469248)
 * Thanks xgenblogger – great stuff: Fixed my issue. It would be great if someone
   who knows could explain how the problem came to exist in the first place.
 *  [xgenblogger](https://wordpress.org/support/users/xgenblogger/)
 * (@xgenblogger)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-642/#post-3469249)
 * [@peter](https://wordpress.org/support/users/peter/)
 * Not sure but i think it happened because while updating plugin it failed to properly
   activate itself therefor fatal error occurred. What we have done is manually 
   activated plugin.
 * That’s all i know, wordpress developer or any geek can explain it well.
 *  [Todd](https://wordpress.org/support/users/absaroka/)
 * (@absaroka)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-642/#post-3469250)
 * I did the fix mentioned above which got me into the admin, and I can navigate
   to pages, but i still can not navigate to my posts. any suggestions on how fixthis?
 * thanks

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Fatal error’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 8 replies
 * 8 participants
 * Last reply from: [Todd](https://wordpress.org/support/users/absaroka/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-642/#post-3469250)
 * Status: not resolved