Eric Nguyen Posted October 25, 2013 Share Posted October 25, 2013 (edited) Migrated to http://www.prestashop.com/forums/topic/284362-404-error-strange-problem-with-empty-css-files-for-modules/ ====================================================================== I'm not using the default theme. I'm using a theme called fashionbird instead. There are 404 errors for most of my modules' CSS files The CSS files are expected at location: /themes/fashionbird/css/modules/<module-name>/ e.g. /themes/fashionbird/css/modules/homefeatured/homefeatured.css The strange thing is that the CSS files are actually present there! They are just empty. Interestingly, putting some dummy code in the CSS files make the 404 errors go away Is there a good way of solving this problem or do I have to manually copy the CSS files from the modules to my theme one by one? Edited October 25, 2013 by Eric Nguyen (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 25, 2013 Share Posted October 25, 2013 your theme trying to override these files, just wondering why these files are empty. when you check your zipped theme file, these files have got contents? Link to comment Share on other sites More sharing options...
NemoPS Posted October 25, 2013 Share Posted October 25, 2013 I have been getting that error as well recently. Weird, it didn't use to happen before, just popped out all of a sudden. Furthermore, in my cases, the stores don't even have those modules activated Link to comment Share on other sites More sharing options...
Eric Nguyen Posted October 25, 2013 Author Share Posted October 25, 2013 Yes, sir. I've double-checked and triple-checked. The original zip file contain empty CSS files. your theme trying to override these files, just wondering why these files are empty. when you check your zipped theme file, these files have got contents? Link to comment Share on other sites More sharing options...
vekia Posted October 25, 2013 Share Posted October 25, 2013 so if these files are empty, it is related to this theme, not for any bug. you can just remove these files from themes/YOUR_THEME/css/modules/ directory 1 Link to comment Share on other sites More sharing options...
Eric Nguyen Posted October 25, 2013 Author Share Posted October 25, 2013 It's strange that I could not find any official documentation mentioning whether an empty file throws a 404 error. It appears to me this is just the way Chrome and Firebug handle empty files. The files are actually found, they are just empty. I'm pretty confident this doesn't break anything as a result. Link to comment Share on other sites More sharing options...
NemoPS Posted October 25, 2013 Share Posted October 25, 2013 As this started to happen since one of the last chrome updates, I second your opinion 1 Link to comment Share on other sites More sharing options...
Recommended Posts