WP-Cache - unlink problem when adding comments, editing posts (4 posts)

  1. michuk
    Posted 9 years ago #

    Once upon a time it happens that WordPress throws such errors on the webpage. Usually after adding a comment or editing a post:

    Warning: unlink(/var/www/wp/wp-content/cache/wp-cache-6e1b0bf0f16087dd323bcd4f04de75e3.html) [function.unlink]: No such file or directory in
    /var/www/wp/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 277

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/wp/wp-content/plugins/wp-cache/wp-cache-phase2.php:277) in /var/www/wp/wp-includes/pluggable-functions.php on line 269

    It does not happen every time when I add comment, but it;s pretty frustrating. The permissions seem OK (www-data has it all).

    May it be a bug in wp-cache or rather my WP instance is misconfigured?

  2. michuk
    Posted 9 years ago #

    Nobody? The easy fix is of course setting
    output_buffering = On in php.ini but obviously it's not what I want...

  3. Fortes
    Posted 9 years ago #

    I ran into this problem just now -- it means that wp-cache is trying to delete a file that no longer exist.

    I replaced all the unlink commands with @unlink -- the "@" before the unlink tells it to ignore the warnings (which is a safe thing to do, considering the file has already been deleted.

  4. zapata
    Posted 8 years ago #

    i'm having the same problems... what files do I have to look into to replace the unlink commands? Did it resolve your problem?

Topic Closed

This topic has been closed to new replies.

About this Topic