cyanoxide Posted October 17, 2016 Share Posted October 17, 2016 More of a minor annoyance than a major issue but when I enable Smart Cache for CSS in the performance section of Prestashop (1.6.1.7) I get an annoying 404 error pop up in my console for all pages on the main site: GET https://static2.ruroc.com/themes/theme1241/cache/back.css 404 () Despite displaying this error, from what I can tell It doesn't seem to cause any issues displaying content on the site though. If I disable smart Cache for CSS the error disappears and clearing the cache has no effect either. I thought maybe it could be down to a broken path so I did a bit of digging in my FTP and it seems that this file simply isn't present in that directory. I tried creating the file but the error persisted so I tried clearing the cache and that deleted the file. It's also worth mentioning that I can't seem to locate the call for this particular file in the theme but I may just need to look harder. I'm not using the default theme so it may be an issue with the theme itself but I thought I'd ask on here first to see if anyone has come across this issue before and if there is a simple resolution. Note: I can't confirm this but I believe the error only started displaying after updating from 1.6.1.1 to the latest version. I don't recall seeing this error before then but I could be wrong about that. Link to comment Share on other sites More sharing options...
asapho Posted December 21, 2018 Share Posted December 21, 2018 Oldie, but I had the same issue, so I'll post my solution. For me, the issue occurred with "Smart cache for CSS" enabled, where one of my module css files had a line @import "back.css"; So, when cached there was no path reference. I located the suspect css file via linux grep: grep -iInrw --context=0 "back\.css" */modules --include="*.*" In my instance, the css file only contained the above line, so I simply modified the calling php file to call back.css directly. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now