Page 1 of 1

Issue when updating header.tpl

Posted: Sat Jan 07, 2012 5:28 am
by victoriamaryvintage
Hi,

Hoping that somebody can shine some light on a problem that i am experiencing. I have just updated header.tpl in order that i might be able to add custom page titles, following another thread that i saw in this forum.

I have changed the following:

<title><?php echo $title; ?></title>

TO

<title><?php if ($keywords) { echo $keywords; } else { echo $title; } ?></title>

This now throws up an error message on my website as follows:

Notice: Undefined property: Document::$fb_meta in /home/vml82/public_html/catalog/view/theme/shoppica/template/common/header.tpl on line 13


Can anybody shed any light on what is going on here?
Thanks

Re: Issue when updating header.tpl

Posted: Sat Jan 07, 2012 5:35 am
by sander76
Is $keywords defined anywhere?

Do you have a link to the forumtopic?

Re: Issue when updating header.tpl

Posted: Sat Jan 07, 2012 7:14 am
by victoriamaryvintage
It's called Progress Towards 1.5.0

Posting was by Johnathan

Thanks for looking

http://forum.opencart.com/viewtopic.php ... 09#p116048

Re: Issue when updating header.tpl

Posted: Sat Jan 07, 2012 7:19 am
by sander76
Which version of Opencart are you running?

Re: Issue when updating header.tpl

Posted: Sat Jan 07, 2012 7:23 am
by victoriamaryvintage
1.5.1.3

Re: Issue when updating header.tpl

Posted: Sat Jan 07, 2012 7:34 am
by sander76
Since the topic title is "Progress Towards 1.5.0" I think the suggestions made in that topic do not apply to version 1.5.1.3. The code has changed a lot in the 1.5.x series.

The $keywords variable is probably not declared anywhere. I would certainly search the forum for an alternative way around this.

[edit]

What was your intention for changing this piece of code?