Post by victoriamaryvintage » Sat Jan 07, 2012 5:28 am

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


Posts

Joined
Sat Jan 07, 2012 5:12 am

Post by sander76 » Sat Jan 07, 2012 5:35 am

Is $keywords defined anywhere?

Do you have a link to the forumtopic?

New member

Posts

Joined
Fri Dec 16, 2011 5:01 am

Post by victoriamaryvintage » Sat Jan 07, 2012 7:14 am

It's called Progress Towards 1.5.0

Posting was by Johnathan

Thanks for looking

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


Posts

Joined
Sat Jan 07, 2012 5:12 am

Post by sander76 » Sat Jan 07, 2012 7:19 am

Which version of Opencart are you running?

New member

Posts

Joined
Fri Dec 16, 2011 5:01 am

Post by victoriamaryvintage » Sat Jan 07, 2012 7:23 am

1.5.1.3


Posts

Joined
Sat Jan 07, 2012 5:12 am

Post by sander76 » Sat Jan 07, 2012 7:34 am

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?

New member

Posts

Joined
Fri Dec 16, 2011 5:01 am
Who is online

Users browsing this forum: No registered users and 37 guests