• Resolved Antal Tettinger

    (@antaltettinger)


    Hello! We are using Autoptimize it is great but recently we are keep having these PHP warnings in our logs like below and I wonder what could we do to deal with it? I have already de-activated the plugin and re-activated. All our themes, WordPress and everything is up to date, we have been using successfully for quite some time.
    I wonder if maybe uninstalling and re-installing would help or do you have some other suggestions please?

    Here is the error log:

    [30-Apr-2020 18:00:03 UTC] PHP Warning: file_put_contents(/home/website/public_html/wp-content/cache/autoptimize/4/js/autoptimize_snippet_c610b3ebab3ce54f5450cef2cdabc14a.js): failed to open stream: No such file or directory in /home/website/public_html/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 111
    [30-Apr-2020 18:00:03 UTC] PHP Warning: file_put_contents(/home/website/public_html/wp-content/cache/autoptimize/4/js/autoptimize_snippet_49ea0d4f47e73422e60ae114fc694b03.js): failed to open stream: No such file or directory in /home/website/public_html/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 111
    [30-Apr-2020 18:00:03 UTC] PHP Warning: file_put_contents(/home/website/public_html/wp-content/cache/autoptimize/4/js/autoptimize_snippet_ab26bc38fa3a72065fe43fc74d4dc03f.js): failed to open stream: No such file or directory in /home/website/public_html/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 111
    [30-Apr-2020 18:00:03 UTC] PHP Warning: file_put_contents(/home/website/public_html/wp-content/cache/autoptimize/4/js/autoptimize_snippet_7121994eec5320fbe6586463bf9651c2.js): failed to open stream: No such file or directory in /home/website/public_html/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 111
    [30-Apr-2020 18:00:03 UTC] PHP Warning: file_put_contents(/home/website/public_html/wp-content/cache/autoptimize/4/js/autoptimize_snippet_dc97c9c6a7224d4cc7223694d0564d47.js): failed to open stream: No such file or directory in /home/website/public_html/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 111
    [30-Apr-2020 18:00:03 UTC] PHP Warning: file_put_contents(/home/website/public_html/wp-content/cache/autoptimize/4/js/autoptimize_snippet_71d954042153c701de1406fadd2e2837.js): failed to open stream: No such file or directory in /home/website/public_html/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 111
    [30-Apr-2020 18:00:03 UTC] PHP Warning: file_put_contents(/home/website/public_html/wp-content/cache/autoptimize/4/js/autoptimize_snippet_8ed6038a5dbf62380de72a681340afd3.js): failed to open stream: No such file or directory in /home/website/public_html/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 111
    [30-Apr-2020 18:00:03 UTC] PHP Warning: file_put_contents(/home/website/public_html/wp-content/cache/autoptimize/4/js/autoptimize_6d79692c90be62375cedfe85be5a858f.js): failed to open stream: No such file or directory in /home/website/public_html/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 111
    [30-Apr-2020 18:00:03 UTC] PHP Warning: file_put_contents(/home/website/public_html/wp-content/cache/autoptimize/4/css/autoptimize_single_610ff44162e6ced6ad235f5b5365a761.css): failed to open stream: No such file or directory in /home/website/public_html/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 111
    [30-Apr-2020 18:00:03 UTC] PHP Warning: file_put_contents(/home/website/public_html/wp-content/cache/autoptimize/4/css/autoptimize_snippet_8d3d73e4e13849adb696b4e5278f5c80.css): failed to open stream: No such file or directory in /home/website/public_html/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 111
    [30-Apr-2020 18:00:03 UTC] PHP Warning: file_put_contents(/home/website/public_html/wp-content/cache/autoptimize/4/css/autoptimize_snippet_cf20af40089bf919dc62a7abedc669e2.css): failed to open stream: No such file or directory in /home/website/public_html/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 111
    [30-Apr-2020 18:00:03 UTC] PHP Warning: file_put_contents(/home/website/public_html/wp-content/cache/autoptimize/4/css/autoptimize_snippet_b6942c8d7ca3563d96a1c72719ca89c3.css): failed to open stream: No such file or directory in /home/website/public_html/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 111
    [30-Apr-2020 18:00:03 UTC] PHP Warning: file_put_contents(/home/website/public_html/wp-content/cache/autoptimize/4/css/autoptimize_snippet_93feb5a44e4f145063b36de5d048273c.css): failed to open stream: No such file or directory in /home/website/public_html/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 111
    [30-Apr-2020 18:00:03 UTC] PHP Warning: file_put_contents(/home/website/public_html/wp-content/cache/autoptimize/4/css/autoptimize_snippet_2e4b257f4bbace82fe143f92f04f4cb3.css): failed to open stream: No such file or directory in /home/website/public_html/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 111
    [30-Apr-2020 18:00:03 UTC] PHP Warning: file_put_contents(/home/website/public_html/wp-content/cache/autoptimize/4/css/autoptimize_snippet_dd2db072c6a8fa33484130eefea949ef.css): failed to open stream: No such file or directory in /home/website/public_html/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 111
    [30-Apr-2020 18:00:03 UTC] PHP Warning: file_put_contents(/home/website/public_html/wp-content/cache/autoptimize/4/css/autoptimize_fe8be255120da357b854406c4b1ac12c.css): failed to open stream: No such file or directory in /home/website/public_html/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 111

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Hey Antal;
    Always a bit of a mystery those “failed to open” when trying to write files, but try below code snippet, it has been known to help some who experienced these errors;

    
    add_filter( 'autoptimize_filter_cache_checkdirs_on_write', '__return_true' );

    Kind regards,
    frank

    Thread Starter Antal Tettinger

    (@antaltettinger)

    Hello Frank! Thank you for your quick reply, highly appreciated!
    Does this solve the problem, or is it just ignoring those files that couldn’t be found?

    Thanks again!

    Antal

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    It solves the problem be doing extra checks before trying to write the files.

    Thread Starter Antal Tettinger

    (@antaltettinger)

    Thank you very much for your help!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome Antal, feel free to leave a review of the plugin and support here! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘No such file PHP warnings recently’ is closed to new replies.