Title: Error message opendir / Cache
Last modified: December 14, 2021

---

# Error message opendir / Cache

 *  Resolved [petraschier](https://wordpress.org/support/users/petraschier/)
 * (@petraschier)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-message-opendir-cache%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/error-message-opendir-cache/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-message-opendir-cache/page/2/?output_format=md)

 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-message-opendir-cache/#post-15164517)
 * [@petraschier](https://wordpress.org/support/users/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?
 *  Thread Starter [petraschier](https://wordpress.org/support/users/petraschier/)
 * (@petraschier)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-message-opendir-cache/#post-15165146)
 * 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?
 *  [jsm06278](https://wordpress.org/support/users/jsm06278/)
 * (@jsm06278)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-message-opendir-cache/#post-15167411)
 * 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.
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-message-opendir-cache/#post-15168390)
 * [@petraschier](https://wordpress.org/support/users/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
 *  Thread Starter [petraschier](https://wordpress.org/support/users/petraschier/)
 * (@petraschier)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-message-opendir-cache/#post-15169122)
 * 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, 5 months ago by [petraschier](https://wordpress.org/support/users/petraschier/).
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-message-opendir-cache/#post-15172152)
 * [@petraschier](https://wordpress.org/support/users/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.
 *  Thread Starter [petraschier](https://wordpress.org/support/users/petraschier/)
 * (@petraschier)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-message-opendir-cache/#post-15172610)
 * 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.
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-message-opendir-cache/#post-15175547)
 * 0755 permissions should be set to each folder, but after adding the code, do 
   you still see the warnings?
 *  Thread Starter [petraschier](https://wordpress.org/support/users/petraschier/)
 * (@petraschier)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-message-opendir-cache/#post-15175667)
 * 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.
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-message-opendir-cache/#post-15178987)
 * [@petraschier](https://wordpress.org/support/users/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.
 *  Thread Starter [petraschier](https://wordpress.org/support/users/petraschier/)
 * (@petraschier)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-message-opendir-cache/#post-15179555)
 * 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, 5 months ago by [petraschier](https://wordpress.org/support/users/petraschier/).
 *  Thread Starter [petraschier](https://wordpress.org/support/users/petraschier/)
 * (@petraschier)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-message-opendir-cache/#post-15179656)
 * So … preloading my 3000 plus URLs takes an eternity! 4 in 30 minutes. I cannot
   wait that long.
 *  Thread Starter [petraschier](https://wordpress.org/support/users/petraschier/)
 * (@petraschier)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-message-opendir-cache/#post-15179926)
 * 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
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-message-opendir-cache/#post-15182988)
 * [@petraschier](https://wordpress.org/support/users/petraschier/) Are you on cPanel
   if so, this article can help you on how to fix the Directory not empty issue.
 * [https://support.cpanel.net/hc/en-us/articles/360058097613-Can-t-remove-directory-in-File-Manager-FileOp-Failure-On-home-user-public-html-folder-Directory-not-empty-](https://support.cpanel.net/hc/en-us/articles/360058097613-Can-t-remove-directory-in-File-Manager-FileOp-Failure-On-home-user-public-html-folder-Directory-not-empty-)
 * Any how, WP-Optimize is unable to access the directories so you are seeing the
   warnings.
 *  Thread Starter [petraschier](https://wordpress.org/support/users/petraschier/)
 * (@petraschier)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-message-opendir-cache/#post-15183300)
 * 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.

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/error-message-opendir-cache/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-message-opendir-cache/page/2/?output_format=md)

The topic ‘Error message opendir / Cache’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)

 * 17 replies
 * 3 participants
 * Last reply from: [Harshad](https://wordpress.org/support/users/bornforphp/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/error-message-opendir-cache/page/2/#post-15186540)
 * Status: resolved