Page 1 of 1

Opencart 1.5.1 compare product error

Posted: Fri Oct 14, 2011 6:56 pm
by original
Hi

when i want to compare two or more products in my opencart 1.5.1. store i get this message.

Code: Select all

Notice: Undefined index: weight_class_id in /home/original/public_html/catalog/controller/product/compare.php on line 122Notice: Undefined index: length_class_id in /home/original/public_html/catalog/controller/product/compare.php on line 123Notice: Undefined index: length_class_id in /home/original/public_html/catalog/controller/product/compare.php on line 124Notice: Undefined index: length_class_id in /home/original/public_html/catalog/controller/product/compare.php on line 125Notice: Undefined index: weight_class_id in /home/original/public_html/catalog/controller/product/compare.php on line 122Notice: Undefined index: length_class_id in /home/original/public_html/catalog/controller/product/compare.php on line 123Notice: Undefined index: length_class_id in /home/original/public_html/catalog/controller/product/compare.php on line 124Notice: Undefined index: length_class_id in /home/original/public_html/catalog/controller/product/compare.php on line 125Notice: Undefined index: weight_class_id in /home/original/public_html/catalog/controller/product/compare.php on line 122Notice: Undefined index: length_class_id in /home/original/public_html/catalog/controller/product/compare.php on line 123Notice: Undefined index: length_class_id in /home/original/public_html/catalog/controller/product/compare.php on line 124Notice: Undefined index: length_class_id in /home/original/public_html/catalog/controller/product/compare.php on line 125
I have a custom theme and some modules installed. I have already tried to copy and replace the original catalog/model/catalog/product.php file, for 1.5.1.2 version and that have saved this problem, but another problem occured,

there was another error

Code: Select all

Notice: Undefined index: design_id in /home/original/public_html/catalog/controller/product/product.php on line 139Notice: Undefined index: upload in /home/original/public_html/catalog/controller/product/product.php on line 140
When I have clicked on any product, so i have uploaded old file back again.

Any solutions for this problem?

Thanks

Re: Opencart 1.5.1 compare product error

Posted: Fri Oct 14, 2011 7:00 pm
by uksitebuilder
You need to fully update the store code if you want to upgrade to 1.5.1.2

You would be better off upgrading to 1.5.1.3

Re: Opencart 1.5.1 compare product error

Posted: Fri Oct 14, 2011 7:19 pm
by original
I think i am using 1.5.1.2 for whole store.

and i cannot upgrade since i use a special app that is only supported with 1.5.1.2 for now,

so i have to solve the issue somehow.

Any ideas?

Thanks

Re: Opencart 1.5.1 compare product error

Posted: Fri Oct 14, 2011 8:51 pm
by uksitebuilder
well, the error you are receiving was evident in 1.5.1.1 but was fixed shortly after the 1.5.1.1 release and is fixed in 1.5.1.2 and as yuo have noticed, uploading the 1.5.1.2 file gets rid of those errors.

Re: Opencart 1.5.1 compare product error

Posted: Fri Oct 14, 2011 10:12 pm
by original
But how can i resolve this problem then

Code: Select all

Notice: Undefined index: design_id in /home/original/public_html/catalog/controller/product/product.php on line 139Notice: Undefined index: upload in /home/original/public_html/catalog/controller/product/product.php on line 140
I am getting this error if i click on any product.

Any ideas?

Re: Opencart 1.5.1 compare product error

Posted: Fri Oct 14, 2011 10:18 pm
by uksitebuilder
There are no such variable names in OC 1.5.x

it must be something you have added