I spent quite a considerable amount of time today trying to troubleshoot why the IE Unlimited CC Loader module was no longer behaving as expected on my site until I decided to disable recently enabled modules. The I found out that the culprit was the CCK Fieldgroup module. Luckily enough I don't really need the Fieldgroup function so I just disabled it.

CommentFileSizeAuthor
#13 unlimited_css.module.debug_.txt6.42 KBdonquixote
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

donquixote’s picture

Could you test the -dev version, and then use var_dump() or dpm() to look into $vars['styles_unlimited_css'] and $vars['styles'] from your themename_preprocess_page(), with cck_fieldgroup enabled ?

sarahjean’s picture

Versions:
Drupal core 6.19
Content Construction Kit (CCK) 6.x-2.8
IE Unlimited CSS Loader 6.x-1.x-dev (2010-Nov-12)
File system is set to Private download method, so not able to use stylesheet aggregation settings in Performance

I am having the same issue, I only have problems with stylesheets not loading in the admin pages of the site. The admin theme for the site is Garland. The main site theme is Acquia Marina. I have tried disabling CCK Fieldgroup and that makes Unlimited CSS functional again, but unfortunately I do have need of CCK Fieldgroups so I can't leave it disabled. I tried the dev version of unlimited_css and used dpm() (with Fieldgroups enabled) as you suggested above:

For Garland:
$vars['styles_unlimited_css']
--------------------------------

<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/admin_menu/admin_menu.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/admin.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/defaults.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system-menus.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/user/user.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/amazon/amazon.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/amazon_store/amazon_store.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/cck/theme/content-module.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ctools/css/ctools.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/date/date.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/date/date_popup/themes/datepicker.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/date/date_popup/themes/timeentry.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/filefield/filefield.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/fivestar/css/fivestar.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/lightbox2/css/lightbox.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/mollom/mollom.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/og/theme/og.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/panels/css/panels.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/tagadelic/tagadelic.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_attribute/uc_attribute.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_order/uc_order.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_product/uc_product.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_roles/uc_roles.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_store/uc_store.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/calendar/calendar.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/misc/farbtastic/farbtastic.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/extlink/extlink.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/cck/modules/fieldgroup/fieldgroup.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/views/css/views.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/node_import/node_import.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/default/files/color/garland-83100292/style.css?O" />
<link type="text/css" rel="stylesheet" media="print" href="/themes/garland/print.css?O" />

--------------------------------

$vars['styles']
--------------------------------

<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/admin_menu/admin_menu.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/admin.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/defaults.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system-menus.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/user/user.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/amazon/amazon.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/amazon_store/amazon_store.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/cck/theme/content-module.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ctools/css/ctools.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/date/date.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/date/date_popup/themes/datepicker.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/date/date_popup/themes/timeentry.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/filefield/filefield.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/fivestar/css/fivestar.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/lightbox2/css/lightbox.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/mollom/mollom.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/og/theme/og.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/panels/css/panels.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/tagadelic/tagadelic.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_attribute/uc_attribute.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_order/uc_order.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_product/uc_product.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_roles/uc_roles.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_store/uc_store.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/calendar/calendar.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/misc/farbtastic/farbtastic.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/extlink/extlink.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/cck/modules/fieldgroup/fieldgroup.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/views/css/views.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/node_import/node_import.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/default/files/color/garland-83100292/style.css?O" />
<link type="text/css" rel="stylesheet" media="print" href="/themes/garland/print.css?O" />

--------------------------------

I also tried this setting Acquia Marina as admin theme (results look the same as for non-admin pages):
$vars['styles_unlimited_css']
--------------------------------

<style type="text/css" media="all">
  @import "/sites/all/modules/contrib/admin_menu/admin_menu.css?O";
  @import "/modules/node/node.css?O";
  @import "/modules/system/admin.css?O";
  @import "/modules/system/defaults.css?O";
  @import "/modules/system/system.css?O";
  @import "/modules/system/system-menus.css?O";
  @import "/modules/user/user.css?O";
  @import "/sites/all/modules/contrib/amazon/amazon.css?O";
  @import "/sites/all/modules/contrib/amazon_store/amazon_store.css?O";
  @import "/sites/all/modules/contrib/cck/theme/content-module.css?O";
  @import "/sites/all/modules/contrib/ctools/css/ctools.css?O";
  @import "/sites/all/modules/contrib/date/date.css?O";
  @import "/sites/all/modules/contrib/date/date_popup/themes/datepicker.css?O";
  @import "/sites/all/modules/contrib/date/date_popup/themes/timeentry.css?O";
  @import "/sites/all/modules/contrib/filefield/filefield.css?O";
  @import "/sites/all/modules/contrib/fivestar/css/fivestar.css?O";
  @import "/sites/all/modules/contrib/lightbox2/css/lightbox.css?O";
  @import "/sites/all/modules/contrib/mollom/mollom.css?O";
  @import "/sites/all/modules/contrib/og/theme/og.css?O";
  @import "/sites/all/modules/contrib/panels/css/panels.css?O";
  @import "/sites/all/modules/contrib/tagadelic/tagadelic.css?O";
  @import "/sites/all/modules/contrib/ubercart/uc_attribute/uc_attribute.css?O";
  @import "/sites/all/modules/contrib/ubercart/uc_order/uc_order.css?O";
  @import "/sites/all/modules/contrib/ubercart/uc_product/uc_product.css?O";
  @import "/sites/all/modules/contrib/ubercart/uc_roles/uc_roles.css?O";
  @import "/sites/all/modules/contrib/ubercart/uc_store/uc_store.css?O";
</style>
<style type="text/css" media="all">
  @import "/sites/all/modules/contrib/calendar/calendar.css?O";
  @import "/misc/farbtastic/farbtastic.css?O";
  @import "/sites/all/modules/contrib/extlink/extlink.css?O";
  @import "/sites/all/modules/contrib/cck/modules/fieldgroup/fieldgroup.css?O";
  @import "/sites/all/modules/contrib/views/css/views.css?O";
  @import "/sites/all/modules/contrib/calendar/jcalendar/jcalendar.css?O";
  @import "/sites/all/themes/contrib/acquia_marina/style.css?O";
  @import "/sites/all/themes/contrib/acquia_marina/icons.css?O";
  @import "/sites/all/themes/contrib/acquia_marina/local.css?O";
</style>

--------------------------------

$vars['styles']
--------------------------------

<style type="text/css" media="all">
  @import "/sites/all/modules/contrib/admin_menu/admin_menu.css?O";
  @import "/modules/node/node.css?O";
  @import "/modules/system/admin.css?O";
  @import "/modules/system/defaults.css?O";
  @import "/modules/system/system.css?O";
  @import "/modules/system/system-menus.css?O";
  @import "/modules/user/user.css?O";
  @import "/sites/all/modules/contrib/amazon/amazon.css?O";
  @import "/sites/all/modules/contrib/amazon_store/amazon_store.css?O";
  @import "/sites/all/modules/contrib/cck/theme/content-module.css?O";
  @import "/sites/all/modules/contrib/ctools/css/ctools.css?O";
  @import "/sites/all/modules/contrib/date/date.css?O";
  @import "/sites/all/modules/contrib/date/date_popup/themes/datepicker.css?O";
  @import "/sites/all/modules/contrib/date/date_popup/themes/timeentry.css?O";
  @import "/sites/all/modules/contrib/filefield/filefield.css?O";
  @import "/sites/all/modules/contrib/fivestar/css/fivestar.css?O";
  @import "/sites/all/modules/contrib/lightbox2/css/lightbox.css?O";
  @import "/sites/all/modules/contrib/mollom/mollom.css?O";
  @import "/sites/all/modules/contrib/og/theme/og.css?O";
  @import "/sites/all/modules/contrib/panels/css/panels.css?O";
  @import "/sites/all/modules/contrib/tagadelic/tagadelic.css?O";
  @import "/sites/all/modules/contrib/ubercart/uc_attribute/uc_attribute.css?O";
  @import "/sites/all/modules/contrib/ubercart/uc_order/uc_order.css?O";
  @import "/sites/all/modules/contrib/ubercart/uc_product/uc_product.css?O";
  @import "/sites/all/modules/contrib/ubercart/uc_roles/uc_roles.css?O";
  @import "/sites/all/modules/contrib/ubercart/uc_store/uc_store.css?O";
</style>
<style type="text/css" media="all">
  @import "/sites/all/modules/contrib/calendar/calendar.css?O";
  @import "/misc/farbtastic/farbtastic.css?O";
  @import "/sites/all/modules/contrib/extlink/extlink.css?O";
  @import "/sites/all/modules/contrib/cck/modules/fieldgroup/fieldgroup.css?O";
  @import "/sites/all/modules/contrib/views/css/views.css?O";
  @import "/sites/all/modules/contrib/calendar/jcalendar/jcalendar.css?O";
  @import "/sites/all/themes/contrib/acquia_marina/style.css?O";
  @import "/sites/all/themes/contrib/acquia_marina/icons.css?O";
  @import "/sites/all/themes/contrib/acquia_marina/local.css?O";
</style>

--------------------------------

(edited for code tags)

donquixote’s picture

Interesting.
So actually the module does run, but it decides that 34 stylesheets are still acceptable.

Could you do some dpm() in unlimited_css_preprocess_page() ?
I am looking at it atm, and it seems like $vars['conditional_styles'] could be the problem. The magic number constraint is only for $styles, but does not count the conditional ones. So this could be what causes the problem. Could you check?

Problem: We don't have the consitional styles in array form, so we would need to count them with substr_count() or preg_match_all().

EDIT:
Maybe instead of dpm(), you could simply insert a html comment saying "<!-- conditional styles -->".

sarahjean’s picture

When I tried dpm() $vars['styles_unlimited_css'] in unlimited_css_preprocess_page() I got:

<style type="text/css" media="all">
  @import "/sites/all/modules/contrib/admin_menu/admin_menu.css?O";
  @import "/modules/node/node.css?O";
  @import "/modules/system/defaults.css?O";
  @import "/modules/system/system.css?O";
  @import "/modules/system/system-menus.css?O";
  @import "/modules/user/user.css?O";
  @import "/sites/all/modules/contrib/amazon/amazon.css?O";
  @import "/sites/all/modules/contrib/amazon_store/amazon_store.css?O";
  @import "/sites/all/modules/contrib/cck/theme/content-module.css?O";
  @import "/sites/all/modules/contrib/ctools/css/ctools.css?O";
  @import "/sites/all/modules/contrib/date/date.css?O";
  @import "/sites/all/modules/contrib/date/date_popup/themes/datepicker.css?O";
  @import "/sites/all/modules/contrib/date/date_popup/themes/timeentry.css?O";
  @import "/sites/all/modules/contrib/filefield/filefield.css?O";
  @import "/sites/all/modules/contrib/fivestar/css/fivestar.css?O";
  @import "/sites/all/modules/contrib/lightbox2/css/lightbox.css?O";
  @import "/sites/all/modules/contrib/mollom/mollom.css?O";
  @import "/sites/all/modules/contrib/og/theme/og.css?O";
  @import "/sites/all/modules/contrib/panels/css/panels.css?O";
  @import "/sites/all/modules/contrib/tagadelic/tagadelic.css?O";
  @import "/sites/all/modules/contrib/ubercart/uc_attribute/uc_attribute.css?O";
  @import "/sites/all/modules/contrib/ubercart/uc_order/uc_order.css?O";
  @import "/sites/all/modules/contrib/ubercart/uc_product/uc_product.css?O";
  @import "/sites/all/modules/contrib/ubercart/uc_roles/uc_roles.css?O";
  @import "/sites/all/modules/contrib/ubercart/uc_store/uc_store.css?O";
  @import "/sites/all/modules/contrib/calendar/calendar.css?O";
</style>
<style type="text/css" media="all">
  @import "/misc/farbtastic/farbtastic.css?O";
  @import "/sites/all/modules/contrib/extlink/extlink.css?O";
  @import "/sites/all/modules/contrib/cck/modules/fieldgroup/fieldgroup.css?O";
  @import "/sites/all/modules/contrib/views/css/views.css?O";
  @import "/sites/all/modules/contrib/panels/plugins/layouts/onecol/onecol.css?O";
  @import "/themes/garland/style.css?O";
</style>
<style type="text/css" media="print">
  @import "/themes/garland/print.css?O";
</style>

With dpm($vars['styles']); it was the same.

I tried inserting:
print "<!-- conditional styles -->";
At the end of the unlimited_css_preprocess_page() function, it displayed right before the doctype declaration in both IE and Firefox. I'm not sure if there was another way that you meant for me to do that, if so let me know and I will try it and let you know what happened.

sarahjean’s picture

Actually, after clearing the Theme registry with print "<!-- conditional styles -->" in place (which I should have done before posting), I can see that only 31 stylesheets are posting, all with <link> rather than @import. This resulted in portions of Garland displaying, but the page layout is broken from a few missing stylesheets.

Here's the CSS links that showed from view source:

    <link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/admin_menu/admin_menu.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/admin.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/defaults.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system-menus.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/user/user.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/amazon/amazon.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/amazon_store/amazon_store.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/cck/theme/content-module.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ctools/css/ctools.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/date/date.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/date/date_popup/themes/datepicker.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/date/date_popup/themes/timeentry.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/filefield/filefield.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/fivestar/css/fivestar.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/lightbox2/css/lightbox.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/mollom/mollom.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/og/theme/og.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/panels/css/panels.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/tagadelic/tagadelic.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_attribute/uc_attribute.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_order/uc_order.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_product/uc_product.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_roles/uc_roles.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_store/uc_store.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/calendar/calendar.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/misc/farbtastic/farbtastic.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/extlink/extlink.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/views/css/views.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/default/files/color/garland-83100292/style.css?O" />
<link type="text/css" rel="stylesheet" media="print" href="/themes/garland/print.css?O" />

sarahjean’s picture

Sorry, got excited, #5 was with CCK Fieldgroup disabled, with it enabled I don't see any of the Garland styles, here's the stylesheets, looks like only 32 are being added to the page:

<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/admin_menu/admin_menu.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/admin.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/defaults.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system-menus.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/user/user.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/amazon/amazon.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/amazon_store/amazon_store.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/cck/theme/content-module.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ctools/css/ctools.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/date/date.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/date/date_popup/themes/datepicker.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/date/date_popup/themes/timeentry.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/filefield/filefield.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/fivestar/css/fivestar.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/lightbox2/css/lightbox.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/mollom/mollom.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/og/theme/og.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/panels/css/panels.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/tagadelic/tagadelic.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_attribute/uc_attribute.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_order/uc_order.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_product/uc_product.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_roles/uc_roles.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_store/uc_store.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/calendar/calendar.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/misc/farbtastic/farbtastic.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/extlink/extlink.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/cck/modules/fieldgroup/fieldgroup.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/views/css/views.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/default/files/color/garland-83100292/style.css?O" />

donquixote’s picture

I tried inserting:
print "<!-- conditional styles -->";
At the end of the unlimited_css_preprocess_page() function

This will not tell you anything useful.
Instead of print, you should append the comment to the styles string, before the conditional styles. The idea is that you find out how many of the styles are coming from the conditional styles variable.

sarahjean’s picture

OK, my PHP is pretty basic, is this where you mean?

Lines 33-37:

  if (!empty($vars['conditional_styles'])) {
    $styles .= "\n". $vars['conditional_styles'];
  }
  
  $styles .= "\n\n";
donquixote’s picture

I think that's the place, yes.
Change it to something like this:

<?php
  if (!empty($vars['conditional_styles'])) {
    $styles .= "\n<!-- conditional styles begin -->";
    $styles .= "\n". $vars['conditional_styles'];
    $styles .= "\n<!-- conditional styles end -->";
  }
?>
sarahjean’s picture

I've tried the code above, and I don't see the comment added in the page source, whether it is displaying <link> or @import. Does that suggest that it isn't loading conditional_styles?

donquixote’s picture

Yeah, seems so. You could play around a bit more, and put more comments into the $styles variable?

Btw, have you tried the -dev version?
I just had a look at the current 1.2 version, and it seems I totally forgot to make a 1.3 release with the changes from -dev. I guess I wanted to get some feedback first, and then moved to other things.

If you find that this problem only happens in -dev, and not in 2.1 (or vice versa), that would be interesting for me to know.

sarahjean’s picture

Yeah, I am working with the dev version currently, I downloaded that when I started testing this. I'll try out the other versions and see if they fix anything. I do have the module running fine on some other sites, this is one of our older ones and the configuration is a bit of a pain in the neck.

donquixote’s picture

I really want to see this issue closed, but this won't happen without some further debugging.
Attached you find a modified version of the module file, which will hopefully tell us more.
I have not tested this at all, so feel free to fix obvious syntax errors.

sarahjean’s picture

Ok, I've added that to the module on my test site. Here's what I see in the source on the admin side with Garland in IE:

<link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/admin.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/defaults.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system-menus.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/user/user.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/amazon/amazon.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/amazon_store/amazon_store.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/cck/theme/content-module.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ctools/css/ctools.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/date/date.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/date/date_popup/themes/datepicker.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/date/date_popup/themes/timeentry.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/filefield/filefield.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/fivestar/css/fivestar.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/lightbox2/css/lightbox.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/mollom/mollom.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/og/theme/og.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/panels/css/panels.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/tagadelic/tagadelic.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_attribute/uc_attribute.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_order/uc_order.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_product/uc_product.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_roles/uc_roles.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/ubercart/uc_store/uc_store.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/calendar/calendar.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/misc/farbtastic/farbtastic.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/extlink/extlink.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/cck/modules/fieldgroup/fieldgroup.css?K" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/contrib/views/css/views.css?K" />
<link type="text/css" rel="stylesheet" media="print" href="/themes/garland/print.css?K" />


And here's what I see in the source on the front page with Acquia Marina:

<!-- _unlimited_css_import() - END -->
 
 
    <!--[if IE 7]>
      <link rel="stylesheet" href="/sites/all/themes/contrib/acquia_marina/ie7-fixes.css" type="text/css">
    <![endif]-->
    <!--[if lte IE 6]>
      <link rel="stylesheet" href="/sites/all/themes/contrib/acquia_marina/ie6-fixes.css" type="text/css">
    <![endif]-->

Let me know what else you would like to see to help debug, or if you need me to test any changes.

donquixote’s picture

Hi,
sorry for letting this sleep for a long time.
Is this still an issue with the current version?