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

Wenya’s picture

I'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.

DanielJohnston’s picture

I'm going to bump this. I'm getting hundreds of error messages a day, making the dblog essentially worthless.

ademarco’s picture

Hi 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.

DanielJohnston’s picture

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>Indus Delta</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="alternate" type="application/rss+xml" title="Indus Delta RSS" href="http://indusdelta.co.uk/rss.xml" />

<link rel="shortcut icon" href="/files/bluemarine_favicon.gif" type="image/x-icon" />
  
<style type="text/css" media="all">
@import "/modules/aggregator/aggregator.css";
@import "/modules/node/node.css";
@import "/modules/system/defaults.css";
@import "/modules/system/system.css";
@import "/modules/system/system-menus.css";
@import "/modules/user/user.css";
@import "/sites/all/modules/admin_menu/admin_menu.css";
@import "/modules/poll/poll.css";
@import "/sites/all/modules/cck/theme/content-module.css";
@import "/sites/all/modules/ctools/css/ctools.css";
@import "/sites/all/modules/date/date.css";
@import "/sites/all/modules/date/date_popup/themes/datepicker.css";
@import "/sites/all/modules/date/date_popup/themes/timeentry.css";
@import "/sites/all/modules/filefield/filefield.css";
@import "/sites/all/modules/google_cse/google_cse.css";
</style>
<style type="text/css" media="all">
@import "/sites/all/modules/logintoboggan/logintoboggan.css";
@import "/sites/all/modules/simplenews/simplenews.css";
@import "/sites/all/modules/tagadelic/tagadelic.css";
@import "/modules/forum/forum.css";
@import "/sites/all/modules/cck/modules/fieldgroup/fieldgroup.css";
@import "/sites/all/modules/panels/css/panels.css";
@import "/sites/all/modules/quicktabs/css/quicktabs.css";
@import "/sites/all/modules/quicktabs/tabstyles/bullets/bullets.css";
@import "/sites/all/modules/views/css/views.css";
@import "/sites/all/themes/indusdelta/html-elements.css";
@import "/sites/all/themes/zen/zen/tabs.css";
@import "/sites/all/themes/zen/zen/messages.css";
@import "/sites/all/themes/zen/zen/block-editing.css";
@import "/sites/all/themes/zen/zen/wireframes.css";
@import "/sites/all/themes/indusdelta/zen.css";

</style>
<style type="text/css" media="all">
@import "/sites/all/themes/indusdelta/layout.css";
@import "/sites/all/themes/indusdelta/indusdelta.css";
</style>
<style type="text/css" media="print">
@import "/sites/all/themes/indusdelta/print.css";
</style><!--[if IE]>
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/zen/zen/ie.css?l" />
<![endif]-->
  <script type="text/javascript" src="/misc/jquery.js?l"></script>
<script type="text/javascript" src="/misc/drupal.js?l"></script>
<script type="text/javascript" src="/misc/progress.js?l"></script>
<script type="text/javascript" defer="defer" src="/sites/all/modules/admin_menu/admin_menu.js?l"></script>
<script type="text/javascript" src="/sites/all/modules/panels/js/panels.js?l"></script>
<script type="text/javascript" src="/sites/all/modules/quicktabs/js/quicktabs.js?l"></script>

<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/", "admin_menu": { "margin_top": 1 }, "quicktabs": { "qt_1": { "qtid": "1", "title": "Different views", "tabs": [ { "bid": "views_delta_comments_recent-block", "hide_title": 1, "title": "Comments", "weight": "-10", "type": "block" }, { "bid": "tagadelic_delta_3", "hide_title": 1, "title": "Topics", "weight": "-9", "type": "block" } ], "ajax": "0", "style": "Bullets" } } });
//--><!]]>
</script>
</head>

There you go!

Summit’s picture

Subscribing, greetings, Martijn

darktygur-1’s picture

Hi, 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.

ademarco’s picture

Status: Active » Fixed

Hi darktygur,

thanks for the hint, I've fixed it and committed on HEAD.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.