Intermittent Permissions Errors from class-wp-filesystem-direct.php
-
First of all, thanks for a great plugin! Definitely one of the best of its class in terms of WP caching plugins, but I’ve had an issue that’s been bugging me for a while now. The plugin seems to be causing intermittent errors in my PHP error log, usually a few hundred per day:
PHP Warning: chmod(): No such file or directory in /wp-admin/includes/class-wp-filesystem-direct.php on line 175
I added some error logging code to that file to confirm that the files which were attempting to be modified before line 175 were indeed posts about to be cached by this plugin.
- This error does not occur with every cached page or post. It is intermittent and I cannot identify any common elements between posts that trigger the error.
- I confirmed my
wp-config.php
file does includedefine('FS_METHOD', 'direct');
- I am running the latest version of the plugin and WordPress. This issue has persisted for many, many months —?as long as I can remember.
- The file permissions for the
/wp-content/cache/cache-enabler/
folder is777
and is owned bynginx:nginx
. - I am running PHP 8.0.29 and Nginx 1.23.2 and is configured with Centminmod.
Are there any ideas or suggestions about how I could resolve this? Is it a bug?
- The topic ‘Intermittent Permissions Errors from class-wp-filesystem-direct.php’ is closed to new replies.