Solving failed to open dir, No such file or directory errors.

Hello,

Are you able to help me diagnose a few php errors?

I have Query Monitor installed and it show PHP errors.

Is this something you can help me with?

Thank you!

  • Nick

    Sure thing! I've enabled WPUM support, are you not able to get in a see the Query Monitor report?

    I've searched for the error "/w3-total-cache/inc/functions/file.php:82", but the 3 or 4 links are to threads with only one comment (the original comment) no one as replied to the person who asked in over a year.
    Here
    Here
    And Here

    Here are the errors.

    Warning opendir (/public_html/wp-content/cache/db/000001/options_comments/): failed to open dir: No such file or directory Count 1
    wp-content/plugins/w3-total-cache/inc/functions/file.php:82

    opendir()
    wp-content/plugins/w3-total-cache/inc/functions/file.php:82

    w3_rmdir()
    wp-content/plugins/w3-total-cache/inc/functions/file.php:121

    w3_emptydir()
    wp-content/plugins/w3-total-cache/lib/W3/Cache/File.php:283

    W3_Cache_File->flush()
    wp-content/plugins/w3-total-cache/lib/W3/DbCache.php:240

    W3_DbCache->_flush_cache_group()
    wp-content/plugins/w3-total-cache/lib/W3/DbCache.php:221

    W3_DbCache->update()
    wp-content/plugins/w3-total-cache/lib/W3/Db.php:109

    update_option()
    wp-content/plugins/ninja-forms/ninja-forms.php:18

    Plugin: w3-total-cache

    opendir(/public_html/wp-content/cache/db/000001/options/): failed to open dir: No such file or directory Count 1
    wp-content/plugins/w3-total-cache/inc/functions/file.php:82

    opendir()
    wp-content/plugins/w3-total-cache/inc/functions/file.php:82

    w3_rmdir()
    wp-content/plugins/w3-total-cache/inc/functions/file.php:121

    w3_emptydir()
    wp-content/plugins/w3-total-cache/lib/W3/Cache/File.php:283

    W3_Cache_File->flush()
    wp-content/plugins/w3-total-cache/lib/W3/DbCache.php:240

    W3_DbCache->_flush_cache_group()
    wp-content/plugins/w3-total-cache/lib/W3/DbCache.php:221

    W3_DbCache->update()
    wp-content/plugins/w3-total-cache/lib/W3/Db.php:109

    update_option()
    wp-content/plugins/ninja-forms/ninja-forms.php:18
    Plugin: w3-total-cache

  • Kasia Swiderska

    Hello Nick,

    W3C Total Cache has some problems with support for some time, so that is why there is no answers to those posts. Found this old thread https://wordpress.org/support/topic/fatal-error-0926-failed-to-open-stream?replies=4#post-3850075 - is older and errors are not exactly the same, but it might be worth trying method proposed by author of the plugin.

    kind regards,
    Kasia

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.