Problem with head.php
- GK User
- Fri Jun 10, 2011 7:00 am
Looking at my error.log file I saw the error below:
Looking at the head.php on line 80 I see that the error refers to the override.css
Is there anything I can do to fix that error?
- 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?
-
- Expert Boarder
- GK User
- Thu Jun 23, 2011 8:51 am
anyone ???
-
- Expert Boarder
- GK User
- Fri Jul 01, 2011 7:43 am
-
- Expert Boarder
- teitbite
- Fri Jul 01, 2011 11:25 pm
Hi
Replace the code from header.php
to
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">
-
- Moderator
4 posts
• Page 1 of 1