• Resolved Pradeep

    (@pmaheepala)


    Hello there,

    I noticed recently that two of the sites I’m managing were displaying warning messages on their front ends. Once cleared the cached they went away but the clients are complaining as this seems to be happening frequently. I managed to capture one warning message:

    “Warning: mkdir(): File exists in /xxx/plugins/comet-cache/src/includes/traits/Plugin/InstallUtils.php on line 356”

    Here are the common plugins on those sites and all of them are running their respective latest versions:
    All In One WP Security
    Contact Form 7
    Slimstat Analytics
    UpdraftPlus – Backup/Restore
    Yoast SEO

    It would be great if someone can point me to the right direction to avoid these messages being displayed. Many thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • @pmaheepala My first suggestion would be to log debugging messages to a log file instead of letting them show up on the front-end of the site. See WordPress Debugging. You can use WP_DEBUG_LOG to log errors to wp-content/debug.log instead of having them show up on the front-end.

    It’s not uncommon to have PHP Warnings generated by plugins, so if you have WP_DEBUG enabled, it’s a good idea to always have those messages logged to a log file.

    Regarding the PHP Warning that Comet Cache seems to be generating: that’s a warning you’d get if Comet Cache was not able to properly clean up old cache files and directories. File permission issues can cause this, but so can file locking other other filesystem-level things on the web server. If it appears that Comet Cache can clean up files properly, then you probably don’t have a permissions issue and those occasional warnings can be ignored.

    Thread Starter Pradeep

    (@pmaheepala)

    @raamdev, Many thanks for the eye-opening response.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Comet Cache displaying warning messages on front end’ is closed to new replies.