Error message opendir / Cache
-
Since this evening I suddenly get a lot of error messages that all look linke this above my website and in my dashboard:
Warning: opendir(/homepages/14/dxxxxxxx/htdocs/Axxxxxxxx/wp-content/cache/wpo-cache/www.petra-schier.de/comments): failed to open dir: Permission denied in /homepages/14/dxxxxxxxxx/htdocs/Axxxxxxxx/wp-content/plugins/wp-optimize-premium/cache/class-wpo-page-cache.php on line 848
I did not change anything and have the version 3.2.1.
Interestingly the error mesages only occur on Chrome (desktop browser), but not (at least noch yet) on Edge or Firefox or in the mobile chrome version. I cleared my browser cache and cookies but that did not help.
Only turning off minify and Cache funktion make the error messages disappear.
Any idea what the problem can be?
The page I need help with: [log in to see the link]
-
@petraschier These are warnings there nothing to worry about, If you are seeing it in WordPress dashboard.
Could you please edit wp-config.php file and
Replace
define('WP_DEBUG', false);with this:
ini_set('log_errors','On'); ini_set('display_errors','Off'); ini_set('error_reporting', E_ALL ); define('WP_DEBUG', false); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);Let us know if replacing the above code helps to fix the issue?
Thank you very much. This seems to help. I’d like to know why, so that I can learn someting about the technical side of my website. This problem occured right out of the blue. An hour earlier everything worked well and then suddenly there were this error messages. Would you explain that, please?
Apparently, this is a common response to a wide range of reported problems on this page. On the surface, this configuration change seems to simply suppress the display of error messages and fixes nothing. It is suggested that “these messages are nothing to worry about” but code that simply suppresses error messages is likely not a good thing. What happens when when there are issues that we *should worry about*? Are those messages suppressed too? I don’t see that this code would only affect WPO. Are messages for ALL plugins being suppressed? Where can we find messages if they are being redirected.
This is more than troubling as it would seem that error messages happen for a reason. It would seem that problems still occur but they are not seen after adding this code. There is no indication or acknowledgment that these problems are being addressed.
@petraschier The warning message won’t affect functioning of the plugin
The warning
Warning: opendir(/homepages/14/dxxxxxxx/htdocs/Axxxxxxxx/wp-content/cache/wpo-cache/www.petra-schier.de/comments): failed to open dir: Permission denied in /homepages/14/dxxxxxxxxx/htdocs/Axxxxxxxx/wp-content/plugins/wp-optimize-premium/cache/class-wpo-page-cache.php on line 848
It indicates there is a permission issue and WPO-optimize cannot access the folder to write the files.
You’ll have to contact your host and check for the permissions for folder /wp-content/cache/wpo-cache/www.petra-schier.de/comments
What kind of permissions have to be set so that the plugin can access it? I did not change any permissions (because I do not know how) and my host certainly didn’t either. Why should they do that only for this plugin?
After disabling and deleting and reinstalling the plugin I now get a similar error message but with another line. It looks like that:
Warning: opendir(/homepages/14/dxxxxxxxxx/htdocs/xxxxxxxxx/wp-content/cache/wpo-cache/www.petra-schier.de/comments): failed to open dir: Permission denied in /homepages/14/dxxxxxxxxx/htdocs/xxxxxxxxx/wp-content/plugins/wp-optimize-premium/cache/class-wpo-page-cache.php on line 829
This is with the plugin version 3.1.8
And it occuers for 31 different urls on my website.
Edit: If I thy purging for all pages a white screen occurs wit even more error messages of different kinds opendir, rm or whatever. At the end there’s something about headers that are already set. I disabled the plugin completely now until this issue is resolved.
-
This reply was modified 4 years, 2 months ago by
petraschier.
@petraschier You should set 0755 permisions to the folder, As WP-Optimize is unable to write the files to the given folder.
Or you server is blocking WP-Optimize from writing the files to said folder, As you see it says “Permission denied”.
The warning is raised by the server, as it doesn’t allows WP-optimize to write the files.
0755 is already set to the folder “cache”. Does it have to be set to each file in that folder, too?
My hosting service tells me that nothing has been changed on the server that could cause these error messages.
0755 permissions should be set to each folder, but after adding the code, do you still see the warnings?
As I wrote above, I don’t see the error message when I add the code, but I don’t know if just suppressing an error message can be that good, because that way I also won’t see any other warnings that can cause real damage if I don’t act on them.
And it doesn’t explain where these errors come from so suddenly and out of the blue.
@petraschier Could you please try purge the cache from WP-Optimize and then try to Preload the urls from WP-optimize > Cache > Preload and check speed of the site.
If site speed is good, it means the files are been create to wpo-cache folder.
As I wrote above: If I try purging tjhe cache a white screen occurs wit even more error messages of different kinds: opendir, rm or whatever. At the end there’s something about headers that are already set.
-
This reply was modified 4 years, 2 months ago by
petraschier.
So … preloading my 3000 plus URLs takes an eternity! 4 in 30 minutes. I cannot wait that long.
When I pugre the cache from the dashboard, the errors shortly disappear and reappear again afer refreshing the page.
When I purge the cache for all sites from admin bar, a lot (!) ofthese warnings appear on a white blank site for various different urls:
Warning: rmdir(/homepages/14/dxxxxxxxxx/htdocs/Autorenblog/wp-content/cache/wpo-cache/www.petra-schier.de/newsletter): Directory not empty in /homepages/14/dxxxxxxxxx/htdocs/Autorenblog/wp-content/plugins/wp-optimize-premium/cache/file-based-page-cache-functions.php on line 903
Warning: opendir(/homepages/14/dxxxxxxxxx/htdocs/Autorenblog/wp-content/cache/wpo-cache/www.petra-schier.de/comments): failed to open dir: Permission denied in /homepages/14/dxxxxxxxxx/htdocs/Autorenblog/wp-content/plugins/wp-optimize-premium/cache/file-based-page-cache-functions.php on line 856
Warning: Cannot modify header information – headers already sent by (output started at /homepages/14/dxxxxxxxxx/htdocs/Autorenblog/wp-content/plugins/wp-optimize-premium/cache/file-based-page-cache-functions.php:856) in /homepages/14/dxxxxxxxxx/htdocs/Autorenblog/wp-includes/pluggable.php on line 1340
Warning: Cannot modify header information – headers already sent by (output started at /homepages/14/dxxxxxxxxx/htdocs/Autorenblog/wp-content/plugins/wp-optimize-premium/cache/file-based-page-cache-functions.php:856) in /homepages/14/dxxxxxxxxx/htdocs/Autorenblog/wp-includes/pluggable.php on line 1343
@petraschier Are you on cPanel if so, this article can help you on how to fix the Directory not empty issue.
Any how, WP-Optimize is unable to access the directories so you are seeing the warnings.
I did not change any rules and all directory rules are set to 755 and file rules to 644, as said in the cPanel article. So this cannot be the problem. There must be something else that makes the errors occur or the plugin unable to access the directories.
-
This reply was modified 4 years, 2 months ago by
The topic ‘Error message opendir / Cache’ is closed to new replies.