ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

1.6.2 expression engine css loading bug

February 03, 2008 10:33am

Subscribe [1]
  • #1 / Feb 03, 2008 10:33am

    i got a bug:

    i have a css file:

    <link rel=“stylesheet” href=“http://www.xy.com/index.php?css=system/cssfile” type=“text/css” media=“screen” />

    this is included to my all template pages.

    When i reloaded my pages , the new build randomly “forgot” load the css file, becuse its included. When the css is not loaded i checked the css file and i got only blank page.

    This is simple css including, i dont know what is the problem with 1.6.2. I tested 1.6.1 and lower version 1.5, and all working fine.

    Srry my english is not clear, im learning yet 😉

  • #2 / Feb 03, 2008 10:46am

    Robin Sowell

    13255 posts

    I suspect it may be the same issue Derek worked on here- the link has a temp fix suggestion to core.style.php.  Want to try the suggested edit and let me know if it does the trick?  If so, we’ll know what’s up and I’ll bump Derek on the thread.

    Does that make sense?

  • #3 / Feb 06, 2008 5:45am

    ak4mc

    429 posts

    What I’ve got happening is, the CSS for my search templates doesn’t load. I just downloaded and installed 1.6.2 yesterday so Derek’s fix from the other thread is already in core.style.php (I see it there with my own bloodshot eyes).

    One thing I’ve found interesting is, although the search template reads:

    <link rel='stylesheet' type='text/css' media='all' href='{stylesheet=search/search_css}' /> 
    <style type='text/css' media='screen'>@import "{stylesheet=search/search_css}";</style>

    What appears in the rendered page has “.v.1201581520” appended to the CSS template name. Is that supposed to be there?

    I even tried duplicating the search_css template and giving it thename including the “.v.1201581520” but that didn’t work either.

  • #4 / Feb 06, 2008 10:27am

    Robin Sowell

    13255 posts

    Hm- the v.xxx is correct- it was added to allow caching of css templates- which is good.  The v.xxx changes as you save a new template- so that the old one won’t continue to be added from cache.

    Is it possible to link to the site in action?  And it only happens on the search page?  I’d be leaning toward a bad link or the css template not being set to type ‘css’ if you’re running the latest bug fix.

  • #5 / Feb 06, 2008 11:50am

    ak4mc

    429 posts

    Is it possible to link to the site in action?  And it only happens on the search page?  I’d be leaning toward a bad link or the css template not being set to type ‘css’ if you’re running the latest bug fix.

    1. Here y’go.

    2. I haven’t seen it anywhere else.

    3. The only link I know of is the one I pasted above, from the stylesheet lines in both the index and results templates. The search_css template has the css_icon.png image in the template list.

  • #6 / Feb 06, 2008 12:04pm

    Robin Sowell

    13255 posts

    Dang- yea, it’s coming back with html header.  An no cache.  Hm.  OK- I know you already checked, but check again- search/search_css is definitely set to ‘css’ as the template type?

  • #7 / Feb 06, 2008 12:21pm

    ak4mc

    429 posts

    The only thing I see in the CP to tell me template type is that icon. Is there something else, somewhere else, that will give me a more definitive answer?

    Edit: Found it. It’s CSS all right.

  • #8 / Feb 06, 2008 12:28pm

    Robin Sowell

    13255 posts

    OK- last thing- go resave that css template- then head over to ‘Admin’ and clear all caches.  Let’s see what that does.

  • #9 / Feb 06, 2008 12:50pm

    ak4mc

    429 posts

    Done. No soap.

  • #10 / Feb 06, 2008 1:03pm

    Robin Sowell

    13255 posts

    OK- turning it over to the crew.  Hang tight.

  • #11 / Feb 06, 2008 1:22pm

    Paul Burdick

    480 posts

    Please download EE again and replace core.style.php on your install, a complete fix is now in there.

  • #12 / Feb 06, 2008 1:47pm

    ak4mc

    429 posts

    It certainly is. </Stan Laurel>

    Thanks, all.

  • #13 / Feb 22, 2008 5:49pm

    R.BIRD

    41 posts

    I see that a fix has been rendered, but I wonder if McGehee’s trouble (and the fix) were related to this:

    http://ellislab.com/forums/viewthread/72274/

    I noticed that his css template name ended in “_css” where mine ended in “-css” which caused the same random loading behavior.

  • #14 / Feb 22, 2008 6:34pm

    Paul Burdick

    480 posts

    Had nothing to do with how the file ended, and I cannot duplicate it a problem with -css at all.  This problem had to do with a bug in Apache when PHP was being run as a CGI.  Our suggestion is still to update to the latest build, as the workaround is in there.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases