Trying to create & read htaccess file – non-writable dir/Nginx
-
file_get_contents(.../wp-content/uploads/.htaccess): Failed to open stream: No such file or directory {{wp-content/plugins/wp-optimize/includes/class-wp-optimize-htaccess.php:88}} file_put_contents(.../wp-content/uploads/.htaccess): Failed to open stream: No such file or directory {{wp-content/plugins/wp-optimize/includes/class-wp-optimize-htaccess.php:135}}
We’re seeing the above error message pop up constantly although the directory is not writable & the file doesn’t exist. This is in a hosting environment that is not using Apache but Nginx.
Is there a way to prevent the plugin from attempting to read/write the htaccess file or would it silence the plugin if we just put an empty file into that dir?
Is do see that the plugin is trying to determine if the file exists and or if it can write into/to that file but those checks seems to fail for some reason.
The site is running on PHP v8.0.x. Thank you for your help!
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Trying to create & read htaccess file – non-writable dir/Nginx’ is closed to new replies.