Problem with head.php

GK User
Fri Jun 10, 2011 7:00 am
Looking at my error.log file I saw the error below:

Code: Select all
[10-Jun-2011 08:41:56] PHP Notice:  Undefined variable: document in /home/mydomain/public_html/templates/gk_penguinmail/layouts/blocks/head.php on line 80
[10-Jun-2011 08:41:56] PHP Fatal error:  Call to a member function addStylesheet() on a non-object in /home/mydomain/public_html/templates/gk_penguinmail/layouts/blocks/head.php on line 80


Looking at the head.php on line 80 I see that the error refers to the override.css

Code: Select all
<?php if($this->getParam('css_override')) $document->addStylesheet($this->templateurl() . '/css/override.css'); ?>


Is there anything I can do to fix that error? :ohmy:
User avatar
Expert Boarder

GK User
Thu Jun 23, 2011 8:51 am
anyone ???
User avatar
Expert Boarder

GK User
Fri Jul 01, 2011 7:43 am
:(
User avatar
Expert Boarder

teitbite
Fri Jul 01, 2011 11:25 pm
Hi

Replace the code from header.php

Code: Select all
<?php if($this->getParam('css_override')) $document->addStylesheet($this->templateurl() . '/css/override.css'); ?>


to

Code: Select all
<link type="text/css" href="<?php echo $this->templateurl() . '/css/override.css'; ?>" rel="stylesheet">
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.