• Resolved Adam

    (@panhead)


    Hey! Got this error message today when troubleshooting an issue with my site:

    Warning: file_put_contents([server_path]/wp-content/uploads/.htaccess): Failed to open stream: Permission denied in [server_path]/wp-content/plugins/wp-optimize/includes/class-wp-optimize-htaccess.php on line 136

    The file permissions for the /wp-content/uploads/.htaccess file is set to 664.

    Any idea why I’m getting this error message?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support vupdraft

    (@vupdraft)

    Hi Adam.

    Your .htaccess is set to the level we would normally recommend (this would have been the first thing I would have asked you to check).

    WPO is having issues getting your server path. Can you disable your other plugins and check if the issue persists, if it does not can you reactivate each plugin one bye one?

    Thread Starter Adam

    (@panhead)

    Thank you for your quick response, @vupdraft !

    There was an update to a different plugin (MB Custom Post Types & Custom Taxonomies) that caused issues. This plugin’s author quickly released an update that fixed their issue, and in turn (pretty sure anyway) that it fixed the issue with WPO.

    Thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘file_put_contents Failed to open stream: Permission denied’ is closed to new replies.