Page 1 of 1

Undefined index errors in the header..

Posted: Thu Nov 22, 2012 10:03 pm
by iamandy
Hello there,

I've recently just started getting the following PHP errors. Not sure what has caused them and couldn't figure it out.

Code: Select all

Notice: Undefined index: bottom in /var/www/apshop/catalog/controller/common/footer.php on line 26Notice: Undefined index: bottom in /var/www/apshop/catalog/controller/common/footer.php on line 26Notice: Undefined index: bottom in /var/www/apshop/catalog/controller/common/footer.php on line 26Notice: Undefined index: bottom in /var/www/apshop/catalog/controller/common/footer.php on line 26Notice: Undefined index: bottom in /var/www/apshop/catalog/controller/common/footer.php on line 26Notice: Undefined index: bottom in /var/www/apshop/catalog/controller/common/footer.php on line 26
Anyone got any ideas?

Re: Undefined index errors in the header..

Posted: Thu Nov 22, 2012 11:03 pm
by Tcalp
This isn't a standard part of OpenCart, I would think some vqMod or extension is adding it, or that you have altered the footer.php controller in some way. Get rid of the failing mod / replace the footer.php with original code / etc..

Re: Undefined index errors in the header..

Posted: Thu Nov 22, 2012 11:05 pm
by pprmkr
Upgraded?
Version?
Link?

Newer version check:

Code: Select all

		foreach ($this->model_catalog_information->getInformations() as $result) {
			if ($result['bottom']) {
Probably no information page(s) set for Bottom.
Edit 1 or more information page, tab Data, Select Bottom:, Save

Re: Undefined index errors in the header..

Posted: Thu Nov 22, 2012 11:07 pm
by Tcalp
Apparently I stand corrected , happened to be in the source structure of 1.5.2.1 when referencing ;)

Re: Undefined index errors in the header..

Posted: Fri Nov 23, 2012 1:19 am
by iamandy
Hello,

I'm running the latest version. This is from fresh install and imported database from previous version.

No mods are installed, and the only thing I've edited is the templates for the modules.. which were more heavily edited in the CSS.

I don't have a link because this is running locally.

Re: Undefined index errors in the header..

Posted: Fri Nov 23, 2012 4:41 am
by pprmkr
When you imported the database witout the new fields in the tables, you should run upgrade.

localhost/ocfolder/install/index.php

You should see the button Upgrade, because config.php is already written.
After upgrade the tables have the correct fields and the errors disappear.

Re: Undefined index errors in the header..

Posted: Fri Nov 23, 2012 6:02 pm
by iamandy
pprmkr wrote:When you imported the database witout the new fields in the tables, you should run upgrade.

localhost/ocfolder/install/index.php

You should see the button Upgrade, because config.php is already written.
After upgrade the tables have the correct fields and the errors disappear.
I'll try this now, Thanks!