• Howdy folks, wondering if I can get some help here.

    I’m running both the W3 Total Cache and Autoptimize plugins, and recently, while running some page loading tests on tools.pingdom.com I noticed that I was consistently getting two errors from some missing files/elements, and that this was blowing out my page load times. The files are as follow:

    <my domain>/wp-content/cache/autoptimize/css/sass/util/square-crop
    <my domain>/wp-content/cache/autoptimize/css/_view_cart

    How can I avoid getting these errors?

    Kind regards,

    Chris

Viewing 6 replies - 1 through 6 (of 6 total)
  • those are probably erroneous references in the autoptimized CSS or JS Chris, impossible to say how to fix without understanding where they originate. can you share your URL so I can have a look?

    frank (ao dev)

    Thread Starter Inga51

    (@inga51)

    Thanks Frank.

    http://www.deprimophoto.com

    I suspect that it’s a folder created by W3TC, and had nothing to do with AO.

    I tried ‘deleting’ the CSS sub-folder (by renaming it slightly). The website just recreated a new CSS folder when the page loaded. So didn’t fix it.

    Chris

    hmm; this is at the top of the autoptimized CSS;
    @import "sass/util/square-crop";@import "_view_cart";

    but the same imports are (somewhere in the middle of the CSS) in wp-content/uploads/pp/static/307fe4a4-64bc-46f6-a71d-c0cc9dd7c2a5-1477498440.css. the reason you get this a an error when autoptimized is that AO automagically moves imports to the start of CSS (as imports only work there).

    but these import shouldn’t be there as they aren’t supposed to work, it seems like they’re a remnant of a (automated) SASS/LESS process maybe?

    frank

    Thread Starter Inga51

    (@inga51)

    Thank you Frank…but what does that mean for me? How can I fix the errors?

    well, did/ do you somehow create wp-content/uploads/pp/static/307fe4a4-64bc-46f6-a71d-c0cc9dd7c2a5-1477498440.css? or is this done by a process that came with your theme? that’s where you should be looking to fix this; that process (which probably uses SASS to create the CSS-file) should not add those import-rules.

    Thread Starter Inga51

    (@inga51)

    Hmm I see. I certainly haven’t created that knowingly. It seems to be a file within the theme. I’ll check with their support.

    Cheers again!

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

The topic ‘W3TC or Autoptimize missing files’ is closed to new replies.