MainBlock occasionally flows up and under head section

GK User
Tue Nov 08, 2011 10:19 am
This is an intermittent problem that happens enough to be a headache, but I cannot reproduce at will. the div#gkMainBlock rolls up about 20-30 pixels and the top part gets hidden underneath either div#gkBanner2 and/or div#system-message-container which I only note because it is in the code, but not visible or active when I've seen this happen.

Now in the layout.css file there is
Code: Select all
.gkWarp:after,.gkMain:after {...... content: ".".......}


When the property content: "."; is disabled in FireBug or WebDeveloper, the gkMainBlock becomes completely visible as it should. I didn't want to permanently delete the "content" property because I assume it was put there for a reason.

Please advise.
User avatar
Senior Boarder

GK User
Tue Nov 22, 2011 7:59 am
I've found this issue is related to the following line of code:

Code: Select all
foreach($attribs as $key => $value) {
if($value != null) {
$params->set($key, $value);
}
}



And it generates the following warning message.
Warning: Invalid argument supplied for foreach() in /######/#######/public_html/SOMESITE.com/templates/gk_finance_business/html/com_content/article/default.php on line 12


Can someone from Gavick please explain the purpose of that line of code, if there are any apparent issues with it, and what impact its removal would have.

Thank you for your support.
User avatar
Senior Boarder


cron