• Resolved jasonrush

    (@jasonrush)


    I’ve recently taken over management of updates for a WordPress site using W3 Total Cache. It originally was running 2.1.6. I seem to be able to successfully overwrite it with a fresh copy of 2.1.6 or 2.1.7 (downloaded from WordPress site). If I attempt to update to 2.1.8 or later, I get the generic WordPress Critical Error message in the main content area of any pages that involve this plugin (pages within the plugins’ management, the “Plugins” page, the “Updates” page, etc). I’ve reviewed various other threads and none of them seem to be matching the errors I’m getting.

    After enabling WP_DEBUG, I get the following:
    Warning: chmod(): Operation not permitted in /opt/bitnami/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 173

    Warning: chmod(): Operation not permitted in /opt/bitnami/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 173

    Warning: chmod(): Operation not permitted in /opt/bitnami/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 173

    Warning: chmod(): Operation not permitted in /opt/bitnami/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 173

    Warning: chmod(): Operation not permitted in /opt/bitnami/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 173

    Warning: chmod(): Operation not permitted in /opt/bitnami/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 173

    Fatal error: Uncaught Exception: Can’t write to file /opt/bitnami/wordpress/wp-content/w3tc-config/master.php in /bitnami/wordpress/wp-content/plugins/w3-total-cache/Util_File.php:375
    Stack trace:
    #0 /bitnami/wordpress/wp-content/plugins/w3-total-cache/ConfigUtil.php(74): W3TC\Util_File::file_put_contents_atomic()
    #1 /bitnami/wordpress/wp-content/plugins/w3-total-cache/ConfigCompiler.php(199): W3TC\ConfigUtil::save_item()
    #2 /bitnami/wordpress/wp-content/plugins/w3-total-cache/Config.php(379): W3TC\ConfigCompiler->save()
    #3 /bitnami/wordpress/wp-content/plugins/w3-total-cache/Generic_Environment.php(31): W3TC\Config->save()
    #4 /bitnami/wordpress/wp-content/plugins/w3-total-cache/Root_Environment.php(28): W3TC\Generic_Environment->fix_on_wpadmin_request()
    #5 /bitnami/wordpress/wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php(742): W3TC\Root_Environment->fix_in_wpadmin()
    #6 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(303): W3TC\Generic_Plugin_Admin->admin_notices()
    #7 /opt/bitnami/wordpre in /bitnami/wordpress/wp-content/plugins/w3-total-cache/Util_File.php on line 375

    As I’ve seen it referenced in several other threads, this deployment is explicitly setting ‘FS_METHOD’ to ‘direct’. The temp directory is set to a custom path that’s permissions are 777. The specified file (‘master.php’) is owned by the correct user and group for a Bitnami WordPress deployment, and is also permissions 777.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @jasonrush

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    I’ve checked this and it appears to be a problem with permissions on Bitnami env.
    Can you please check this topic and reset the permission and let me know if the problem persists?
    Thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    No activity for a week.
    Marking topic as resolved.

    Thread Starter jasonrush

    (@jasonrush)

    I have seen this topic and applied multiple versions of these permission fixes, including I believe chmod 777 (for testing, then immediately restored). I did get the OK to set up a testing site for testing updates on so I should be able to test/verify further and more often now.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @jasonrush

    Thank you for your feedback.
    Can you please let me know if the problem is solved with the permission fixes?
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error after upgrading to 2.1.8+’ is closed to new replies.