• Hi,

    I should note that I am not experiencing any actual errors or issues on the site itself and the plugin appears to be working fine. However, I’ve noticed the following type of warning occurring on a regular basis. My guess is that maybe this happens when the cache expired and the file doesn’t exist anymore, and it doesn’t cause any actual problem. Aside from cluttering up my php error log, of course. Any reason I should be concerned, or, if not, could this be handled better in a future update?

    PHP Warning: file_get_contents(/wp-content/cache/autoptimize/autoptimize_c03019ef76e0a86a4c6f7b43a608518a.php.none): failed to open stream: No such file or directory in /wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 37

Viewing 2 replies - 16 through 17 (of 17 total)
  • I’m also randomly having the “failed to open stream” error. When this occurs, no CSS is loaded. I can’t seem to force this error, but it shows up dozens of times a day. AO is version 2.4.4. (I’ve removed irrelevant part of the url to shorten error msg)

    20190110T062301: https://www.nordicyachtworks.com/index.php
    PHP Warning: file_put_contents(xxxxxxx/public_html/NordicYachtWorks/WordPress/wp-content/cache/autoptimize/js/autoptimize_snippet_0bd8cb193234a743b26238dd43756542.js): failed to open stream: No such file or directory in xxxxxxx/public_html/NordicYachtWorks/WordPress/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 103

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    hey junepc;
    a pity you’re still encountering this, the changes in AO 24 should have fixed this but in your case seem to have not done so :-/

    some randomish questions;
    * do you have page caching, or is every page triggering WordPress and thus also AO?
    * do you have any idea of the write-speed of the disks of the server your site is hosted on?
    * when no CSS is loaded, does the autoptimized CSS return a 404 (not found) error?
    * are the errors for different files or always the same? or different but always JS?

    have a nice weekend,
    frank

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Failed to Open Stream’ is closed to new replies.