CSS problems
UnderDesign - October 6, 2006 - 18:23
| Project: | Checklist |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Description
Since installing Checklist (great module - fantastic idea, btw), I have been seeing loads of errors in the admin log. They all revolve around unlocateable CSS files. Here's an example:
Type page not found
Date Friday, October 6, 2006 - 7:13pm
User Visitor
Location http://www.vcommunity.org.uk/request_introduction/modules/checklist/chec... http://www.vcommunity.org.uk/request_introduction/patrick_nelson
Message request_introduction/modules/checklist/checklist.css not found.
Severity warning
Hostname 84.65.27.208The location, referrer and message always point to different locations, e.g,
Location http://www.vcommunity.org.uk/comment/reply/modules/checklist/checklist.c... http://www.vcommunity.org.uk/comment/reply/2973
Message comment/reply/modules/checklist/checklist.css not found.and
Location http://www.vcommunity.org.uk/forum_topic/stevenj/2973/modules/checklist/... http://www.vcommunity.org.uk/forum_topic/stevenj/2973/how_many_people
Me... forum_topic/stevenj/2973/modules/checklist/checklist.css not found.I'm assuming there is a typo somewhere in module file, but have no idea. Anyone else?

#1
Because of the lack of an answer here, and for the benefit of anyone else experiencing the same problem, I solved it (albeit, not nicely) by commenting out line 127:
if ($css = variable_get('checklist_css', '')) {/** drupal_set_html_head("\n<style type=\"text/css\">@import \"$css\";</style>\n"); */
}
I've also changed the priority of this bug to critical because (IMO) the module doesn't work properly - if you don't want loads of error messages clogging up your watchdog.
#2
Patch to load the CSS using theme_add_style instead of drupal_set_html_head
#3
Closing old issues. New module is being created using this namespace.