Jump to content

[Solved] Strange problem with empty CSS files for modules - 404 error


Recommended Posts

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

nFg8uMx.png

 

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.

UU2nZdf.png

 

Interestingly, putting some dummy code in the CSS files make the 404 errors go away

XX1TVxH.png

 

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 by Eric Nguyen (see edit history)
Link to comment
Share on other sites

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

×
×
  • Create New...