• Resolved wynot

    (@wynot)


    Hi – I just started receiving this warning on my published site today:

    Warning: mkdir(): File exists in /home/content/89/9196089/html/biotreklabs/wp-content/plugins/comet-cache/src/includes/traits/Plugin/InstallUtils.php on line 356

    What would cause this to just start appearing now? I checked p-config file and I have defined wp-debug as false.

    What else should I check? Any help greatly appreciated.

    Thank you!

    https://wordpress.org/plugins/comet-cache/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter wynot

    (@wynot)

    Nevermind! I figured it out….
    Just needed to create a php.ini file and place display_errors = Off
    in it.

    Raam Dev

    (@raamdev)

    @wynot Thanks for the update. 🙂 I was going to say that if Comet Cache appears to be working as expected, that Warning can be safely ignored.

    I was also reviewing the WordPress codebase and noticed that they are forcing suppression of warnings like that from filesystem-related functions like mkdir (see source).

    In any case, I’m making a note that we should do something similar in the Comet Cache codebase to avoid unnecessary confusion.

    Thread Starter wynot

    (@wynot)

    You are Welcome, Raam Dev!
    Thanks for this reply and additional information about why it happened.
    Great plugin – Love it!

    Thanks!

    Hi all,

    I too am getting this error on one of the sites I manage that is running this plugin. It’s been bugging me for weeks now. It goes away when I manually clear the cache, but then mysteriously comes back several days later.

    Everything about the plugin appears to be functioning just fine, so I’m assuming the error can be safely ignored.

    I did not have display_errors = Off in my php.ini file so I have added that line. Hopefully that will fix it.

    But if there’s a way to keep this plugin from throwing that error to begin with that would be awesome.

    @evster @wynot Can you tell me which version of PHP you’re running? Also, would either of you be able to give me a copy of the output from phpinfo()? That would help me in tracking down what the issue may be here.

    I opened a GitHub issue here so that we can research this issue a bit more: https://github.com/websharks/comet-cache/issues/786

    Apologies for the belated response. I left for vacation right after my last post.

    I can now confirm that this same error is happening on two different sites that I manage.

    They are both running PHP Version 5.5.35.

    Raam – If you email me directly I would be happy to share the full phpinfo() output with you for both sites.

    You can reach me at evan |at| evanwebdesign.com

    The latest version of Comet Cache (v160917, released today) includes changes related to this GitHub issue. Please see the full changelog:

    Bug Fix: In some scenarios Comet Cache might produce a false-positive “Warning: mkdir(): File exists” message when checking if the cache directory exists. Comet Cache now calls clearstatcache() and uses file_exists() instead of is_dir() to help make this check more robust. See Issue #786.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PHP Warning just showed up on my published site’ is closed to new replies.