Frontpage loses all css styling

Advanced and professional portal news Joomla template with community features and various content display layouts.
GK User
Sat May 26, 2012 3:37 pm
Approximately once a day, the frontpage loses all styling, and is just displayed as a blank white page, with all elements inside but again as i said, with no styling whatsoever.

To restore the page, i have to manually clear cache, or sometimes even just open a link on the page, or a menu item ( which indicated that this is a frontpage problem).

I initially had 1.7 installed, and kept getting this error ( i remember getting the IE error on top).
In an attempt to get rid of the error, I have redone the site fresh on 2.5.

However I still get this css styling issue at least once a day.

I have had this issue for more than a month now, so I would be very grateful to get it solved.

Thanks
User avatar
Junior Boarder

GK User
Sat May 26, 2012 4:09 pm
My GK Cache and EXT Cache were version 1.0

I have uninstalled them, and reinstalled the ones in the rest files package (appear to be the same version).

I have cleared my cache, and will now wait to see what happens.
User avatar
Junior Boarder

GK User
Sat May 26, 2012 11:22 pm
Unfortunately the problem is persisting.. What can I do about this?
User avatar
Junior Boarder

GK User
Sun May 27, 2012 12:00 am
I believe it must be the same issue as:

https://www.gavick.com/forums/the-news- ... che#p75680
User avatar
Junior Boarder

GK User
Sun May 27, 2012 2:37 pm
When on the frontpage, the site seems to assume that all users are running IE6 or a not up to date browser, which is why I think the layout breaks.

When I go to any menu item, the site is displayed properly, so the issue is only with the frontpage.

Any quick fix or workaround for this issue?

This is actually happening on two different templates for me (world news, boutique), and I consider it a very serious issue. Please help.
User avatar
Junior Boarder

GK User
Tue May 29, 2012 6:37 pm
I think I have finally resolved this issue.

It's a IE6 cache problem, where once a user on IE6 visits the site, his session is cached, and then it's displayed to all users, on whichever browser they are on. This lead to breaking the site layout and displaying the IE browser warning.

Solved By:

Open the head.php file in the template/layouts/blocks directory.

Remove the IE check condition

Code: Select all
if($this->browser->get('browser') != 'ie6') {


by also removing this code at the end

Code: Select all
} else {

   // IE6 code
   $this->addCSS( $this->URLtemplate(). '/css/ie6.css');
   
}
User avatar
Junior Boarder


cron