Support » Fixing WordPress » WP-Cache – unlink problem when adding comments, editing posts

  • 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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Nobody? The easy fix is of course setting
    output_buffering = On in php.ini but obviously it’s not what I want…

    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.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP-Cache – unlink problem when adding comments, editing posts’ is closed to new replies.