CSS not showing in IE6

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

CSS not showing in IE6

Post by duclet »

I have this problem with IE6. Whenever you go to my site, the page loads fine. However, if you click on any link, the following page loads as if the CSS doesn't exist. I have no idea why this is happening and this is only happening in IE6. I have the latest version of CMS Made Simple by the way.
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: CSS not showing in IE6

Post by duclet »

Forgot to mention that if you click on refresh, then it shows the CSS but again, if you click on a link (even if the link is back to the same page), the problem still exist.
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: CSS not showing in IE6

Post by duclet »

After some testing, here are some more information:

It seems to be relating to the gzip compression of the CSS. Strange thing is that if it is the first time, then IE6 can read it but if any link is clicked, then it cannot. Anyone know why this is happening?

Lastly, here is the link to my site for reference: http://tiger-inc.com
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: CSS not showing in IE6 (Solved)

Post by duclet »

Figured out the solution myself. Change the begin lines of stylesheet.php to

Code: Select all

if(is_numeric(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6'))) {
    ob_start();
} else {
    header('Content-Encoding: gzip');
    ob_start('ob_gzhandler');
}
should fix it.
Post Reply

Return to “CMSMS Core”