WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Cannot Install W3 cache -Fatal error (3 posts)

  1. sleenmg
    Member
    Posted 1 year ago #

    I'm receving this error when I install W3 Cache. I did set the persmissions to 777. I'm not realy sure what it is telling me to do.

    This is the errror I'm getting. I've used astericks for company name.

    Fatal error: Uncaught exception 'FileOperationException' with message '/home2/*******/public_html/wp-content/w3tc-config/master.php could not be created, please run following command:

    • <strong style="color: #f00;">chmod 777 /home2/*******/public_html/wp-content/cache/tmp
    • <strong style="color: #f00;">chmod 777 /home2/******/public_html/wp-content/w3tc-config
    • ' in /home2/*******/public_html/wp-content/plugins/w3-total-cache/inc/functions/activation.php:127 Stack trace: #0 /home2/*******/public_html/wp-content/plugins/w3-total-cache/lib/W3/ConfigWriter.php(159): w3_throw_on_write_error('/home2/******...', Array) #1 /home2/******/public_html/wp-content/plugins/w3-total-cache/lib/W3/Config.php(71): W3_ConfigWriter->save() #2 /home2/******/public_html/wp-content/plugins/w3-total-cache/lib/W3/CloudFlare.php(174): W3_Config->save() #3 /home2/******/public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin/CloudFlare.php(52): W3_CloudFlare->update_ip_ranges in /home2/******/public_html/wp-content/plugins/w3-total-cache/inc/functions/activation.php on line 127

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. jasonpaulweber
    Member
    Posted 1 year ago #

    Just make a blank "master.php" file and manually upload it to your /wp-content/w3tc-config/ folder. That should resolve the issue.

    But there are alternatives, including WP Super Cache, DB Cache Reloaded Fix, Hyper Cache ... if you're looking for an alternative.

    And if the above-solution doesn't work (it should), do this -- and only do it if you're getting any errors after trying the above 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.

  3. alchemyim
    Member
    Posted 1 year ago #

    Hey

    I had the same issue/ message and following jasonpaulweber instructions it now works!!

    thanks soo much Jason.

    (NOTE: It did need the activation php edit as you mentioned)

    cheers

    Jon

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic