Post by gerganadimova » Thu Apr 02, 2015 2:10 am

OpenCart v1.5.5.1

Custom module that somebody else built.

I'm getting this error: Undefined variable $header in ...

However in the controller I do have:

Code: Select all

$this->children = array(
			'common/column_left',
			'common/column_right',
			'common/content_top',
			'common/content_bottom',
			'common/footer',
			'common/header'
		);
Is there any other way to get the header variable? Do you have any ideas why this is happening?

Thanks in advance!

User avatar
New member

Posts

Joined
Mon Apr 22, 2013 5:54 pm

Post by chulcha » Thu Apr 02, 2015 3:19 am

U
ndefined variable $header in ...
And what message should be after the three dotes

Active Member

Posts

Joined
Fri Jul 18, 2014 4:39 pm

Post by gerganadimova » Thu Apr 02, 2015 4:20 pm

Thanks for your reply.

The entire message is:

Code: Select all

2015-04-02 11:05:52 - PHP Notice:  Undefined variable: header in /home/alltimec/public_html/catalog/view/theme/gadgetric/template/module/socialvideos.tpl on line 2
Hope that you can give me some insight.

Image


User avatar
New member

Posts

Joined
Mon Apr 22, 2013 5:54 pm

Post by chulcha » Thu Apr 02, 2015 5:00 pm

Code: Select all

$this->children = array(
         'common/column_left',
         'common/column_right',
         'common/content_top',
         'common/content_bottom',
         'common/footer',
         'common/header'
      );
This code from the controller /catalog/module/socialvideos.php?

Active Member

Posts

Joined
Fri Jul 18, 2014 4:39 pm

Post by gerganadimova » Thu Apr 02, 2015 5:06 pm

Solved. Thank you anyway.

User avatar
New member

Posts

Joined
Mon Apr 22, 2013 5:54 pm

Post by Berela1990 » Thu Dec 29, 2016 7:18 am

Notice: Undefined variable: header in

I have this problem
opencart version 2.2.0.0
how fix

Newbie

Posts

Joined
Thu Dec 29, 2016 7:15 am
Who is online

Users browsing this forum: No registered users and 23 guests