• Resolved designdrumm

    (@designdrumm)


    Hello,
    I am getting these errors with your plugin.

    WARNING: wp-content/plugins/w3-total-cache/inc/functions/file.php:82 – opendir(/mywebsite.com/html/wp-content/cache/db/000000/all/): failed to open dir: No such file or directory
    wp_set_post_lock, update_post_meta, update_metadata, W3_Db->update, W3_DbCache->update, W3_DbCache->_flush_cache_group, W3_Cache_File->flush, w3_emptydir, w3_rmdir, opendir

    WARNING: wp-content/plugins/w3-total-cache/inc/functions/file.php:82 – opendir(/mywebsite.com/html/wp-content/cache/db/000000/options_comments/): failed to open dir: No such file or directory
    wp_set_post_lock, update_post_meta, update_metadata, W3_Db->update, W3_DbCache->update, W3_DbCache->_flush_cache_group, W3_Cache_File->flush, w3_emptydir, w3_rmdir, opener

    WARNING: wp-content/plugins/w3-total-cache/inc/functions/file.php:82 – opendir(/mywebsite.com/html/wp-content/cache/db/000000/options/): failed to open dir: No such file or directory
    wp_set_post_lock, update_post_meta, update_metadata, W3_Db->update, W3_DbCache->update, W3_DbCache->_flush_cache_group, W3_Cache_File->flush, w3_emptydir, w3_rmdir, opener

    WARNING: wp-content/plugins/w3-total-cache/inc/functions/file.php:82 – opendir(/mywebsite.com/html/wp-content/cache/db/000000/comments/): failed to open dir: No such file or directory
    wp_set_post_lock, update_post_meta, update_metadata, W3_Db->update, W3_DbCache->update, W3_DbCache->_flush_cache_group, W3_Cache_File->flush, w3_emptydir, w3_rmdir, opendir

    I have created the directories myself and they just get deleted. I think from the deleting the cache files. Not sure what to do. Please advise. Thanks.

    Best,
    Karl

    https://www.ads-software.com/plugins/w3-total-cache/

Viewing 5 replies - 1 through 5 (of 5 total)
  • I have read here multiple times, db cache no longer works. Last real update of this plugin been months or year ago, the code for db cache seems already obsolete. Use page cache instead.

    @muchmuch11,

    For me db cache still works fine. But then i am using a community driven updated version of w3tc instead.

    Can you please post here your line 82 from wp-content/plugins/w3-total-cache/inc/functions/file.php?

    The error you’re seeing is when w3_rmdir function is called.
    Line 82 should look something like this:
    $dir = @opendir($path);
    notice the “@” just before opendir. This is there to suppress those warning messages in case the folder does not exist.

    Otherwise, you can also try adding the following just before line 82 (above $dir = @opendir($path);):

    if(!is_dir($path)) { return false; }

    Thread Starter designdrumm

    (@designdrumm)

    All caches work fine for me. This was a silent error I was seeing with Debug Bar.
    However, this fixed the error message.

    if(!is_dir($path)) { return false; }

    Thanks!

    Best,
    Karl

    @kimberly

    Thanks for the info, good news! Any effort to maintain this plugin is great.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Comments directory not existing’ is closed to new replies.