• Resolved shspivey

    (@shspivey)


    I am upgrading my sites to the latest version of WordPress Multisite (5.4) and PHP (7.3.16) and I am now getting an error related to WP Optimize.

    Warning: file_put_contents(/opt/bitnami/apps/wordpress/htdocs/wp-config.php): failed to open stream: Permission denied in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-optimize/cache/class-wpo-page-cache.php on line 679

    I checked file permissions on both the wp-config and class-wpo-page-cache.php files but they both appear accurate. I have also uninstalled and re-installed WP Optimize but I am still getting the error.

    I am testing these upgrades on an internal dev site so I don’t have a public URL I can provide for troubleshooting. Can someone suggest a way for me to troubleshoot and resolve this issue?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,

    This is WP-Optimize trying to add the WP_CACHE constant in wp-config.php.
    You can try to disable the cache, save settings, and try enabling again.

    If this doesn’t work, you can add the line manually:

    define('WP_CACHE', true); // WP-Optimize Cache

    (NB: this requires caching to be enabled, or at least the file “advanced-cache.php” to be present in the folder wp-content)

    Marc.

    • This reply was modified 4 years, 6 months ago by Marc Lacroix.
    Thread Starter shspivey

    (@shspivey)

    Marc,

    Thank you for the response, this is exactly what the problem was. I updated wp-config manually and all is well.

    Scott

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP Optimize Errors with WordPress/PHP Upgrade’ is closed to new replies.