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.

IE 9 MIME Type

May 02, 2011 12:41pm

Subscribe [3]
  • #1 / May 02, 2011 12:41pm

    rcw1681

    6 posts

    IE 9 will not load the CSS style sheet linked within EE. (site_css.v.1304106579)

    It will load the style sheet if it is saved as site_css.css and saved as an external .css outside of the EE file system.

    Suggestions?

    Thanks,

    EE v 1.7.1

  • #2 / May 02, 2011 1:48pm

    rcw1681

    6 posts

    Also, when I view the response header in Firefox it returns Content-Type text/css.

    Does IE 9 not like that the css file doesn’t end with .css within EE?

  • #3 / May 03, 2011 12:49am

    John Henry Donovan

    12339 posts

    rcw1681,

    Have you got a link to the page in question so we can try it ourselves?
    Can you also share how you linked your style-sheet in your template please?

  • #4 / May 03, 2011 8:52am

    rcw1681

    6 posts

    John,

    Currently, I don’t have a live URL.

    Here is how I am linking my stylesheet.

    <link rel=‘stylesheet’ type=‘text/css’ media=‘screen’ href=’{stylesheet={my_template_group}/reset}’ />

    Is this correct?

  • #5 / May 04, 2011 11:47am

    Kevin Smith

    4784 posts

    Hey rcw1681—

    The stylesheet link looks good on the template side of things (assuming those backticks are actually apostrophes in your EE template).

    Would you mind pasting here the HTML that EE renders for the stylesheet link? Also, what’s the HTML doctype you’re using? IE can sometimes have some squirrelly behavior based entirely on the doctype you use.

    Kevin

  • #6 / May 04, 2011 12:27pm

    rcw1681

    6 posts

    Kevin,

    This is the html being rendered.  Also, I have removed the .php extension from the index page within EE. The site has been operating like this for sometime, but could this be causing a problem now? 

    <link rel="stylesheet" type="text/css" media="all" href="http://help.pg.net/blog/index?css=site/site_css.v.1202341866" />

    doctype DTD XHTML 1.0 Strict

  • #7 / May 05, 2011 10:37am

    Kevin Smith

    4784 posts

    For the sake of troubleshooting, could you add back the .php file extension to index.php in the URL? You can redo it once we get everything squared away if that ends up not having been the cause.

    Another thing to try for troubleshooting: in your template, try changing the part of the stylesheet link that reads

    {stylesheet={my_template_group}/reset}

    to this

    {path={my_template_group}/reset}

    Out of the box thinking here, but worth a mention: this wouldn’t happen to be your 33rd stylesheet on this page, would it? IE has a limit of 32 stylesheets per page. It won’t even load stylesheets 33 and beyond!

    Kevin

  • #8 / May 05, 2011 12:20pm

    rcw1681

    6 posts

    Kevin,

    This didn’t fix the issue.  There are only two sheets attached to this page, so I don’t think that is the issue. 

    Could it be something that I don’t have set properly under General Settings or Weblog Settings?

    Obviously, this is isn’t a problem for most people using EE and this linking method.

  • #9 / May 05, 2011 2:24pm

    Brandon Jones

    5500 posts

    rcw1681,

    What MIME type is your server serving the CSS as? If you change the doctype to say HTML 4.01 Strict and make that validate, does IE9 load the CSS correctly?

  • #10 / May 05, 2011 3:01pm

    rcw1681

    6 posts

    It is serving up text/css.  The HTML does not validate at strict 4.01 , but I know other EE sites are working with IE 9 and they are not validated at that level. 

    What doesn’t add up is that I can link the sheet using a static link and it works fine, but when I use the EE code to link it will not work in IE9.

  • #11 / May 05, 2011 4:22pm

    rcw1681

    6 posts

    My problem was the removal of the .php file extension from index under General Settings.  It had been working for quite sometime with just index. Once I added the extension back IE9 loaded the stylesheet.

    I will explore the following link to see if I can get it working without the extension. 

    http://expressionengine.com/legacy_docs/installation/renaming_index.html

    Thanks for your help.

  • #12 / May 05, 2011 4:40pm

    Kevin Smith

    4784 posts

    Glad to see you got it working again, rcw1681. If you run back into any trouble with it, just let us know.

    Kevin

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

ExpressionEngine News!

#eecms, #events, #releases