Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I'm using on latest 6.x Drupal with a bunch of modules and a Zen theme with basic customisations. Getting 'page not found' errors for the files zen.css and html-elements.css in the subtheme folder on every pageload. This appears to be slowing down the site as well. These errors did not appear before enabling IE Unlimited CSS Loader. Suggestions welcome!
Comments
Comment #1
Wenya CreditAttribution: Wenya commentedI've been having the same issue. I have my own Zen subtheme, Drupal 6 and IE Unlimited CSS Loader in use. The system seems to expect to find zen.css in my subtheme's folder. I suspect that in some file somewhere there's a reference to zen.css in relative path. Somehow IE Unlimited CSS Loader breaks that path and so the system ends up looking for the zen.css file in subtheme's folder instead of Zen theme's folder. This is just a guess, I haven't been able to confirm this.
My solution so far is to copy zen.css to my subtheme's folder so that it can be found there. It seems to work for now, but it isn't of course a real solution, just an I'll-think-about-this-more-later solution. I'll comment again if I find a real solution.
Comment #2
DanielJohnston CreditAttribution: DanielJohnston commentedI'm going to bump this. I'm getting hundreds of error messages a day, making the dblog essentially worthless.
Comment #3
ademarco CreditAttribution: ademarco commentedHi guys,
I'm actually switching to Zen as well for my projects, so very soon I'll look into this issue, could you paste the content of your head tag please? It could help me to solve the issue.
Comment #4
DanielJohnston CreditAttribution: DanielJohnston commentedThere you go!
Comment #5
Summit CreditAttribution: Summit commentedSubscribing, greetings, Martijn
Comment #6
darktygur-1 CreditAttribution: darktygur-1 commentedHi, the problem is due to the module not making sure a css file exists before including it. drupal_get_css(), the drupal function whose output this module is overriding, actually checks whether a css file exists (using a file_exists() function call), and only includes it if it does. This module needs to do the same if you want to avoid 404 errors.
Hopefully, that'll aid someone in fixing it.
Comment #7
ademarco CreditAttribution: ademarco commentedHi darktygur,
thanks for the hint, I've fixed it and committed on HEAD.