Page 1 of 1

Undefined index:

Posted: Sun Oct 06, 2013 7:37 am
by russb123
I am getting errors when I place a product in my shopping cart. I am using the default opencart(1.5.6) theme, opentshirt(1.2.3), and only vqmod(2.4.1) installed so far. I looked at the code and all instances point to if ($product['recurring']).

These appear when I view my shopping cart

Notice: Undefined index: recurring in /home/****/public_html/catalog/controller/checkout/cart.php on line 248
Notice: Undefined index: recurring in /home/****/public_html/catalog/controller/checkout/cart.php on line 284
Notice: Undefined index: profile_name in /home/****/public_html/catalog/controller/checkout/cart.php on line 285
Notice: Undefined index: recurring in /home/****/public_html/catalog/controller/module/cart.php on line 113
Notice: Undefined index: profile_name in /home/****/public_html/catalog/controller/module/cart.php on line 114

During checkout at the Payment Method section i get this error:
/home/****/public_html/vqmod/vqcache/vq2-system_library_cart.php on line 589

Any help would be appreciate, Thanks.

Re: Undefined index:

Posted: Tue Oct 08, 2013 2:09 am
by Avvici
Those aren't errors that will necessarily affect the store performance, just annoyances. However they should be taken care of. Whenever you have an undefined index you need to make an if(isset( check to send it away if returns false.

Re: Undefined index:

Posted: Thu Oct 10, 2013 4:52 pm
by colinkho
I have this problem too. What was the appropriate fix for this ? Thank you!

Re: Undefined index:

Posted: Tue Feb 18, 2014 4:10 pm
by paulbothma
hi - i have the exact same errors and neither opencart or opentshirts can really sort it out.

i see no posts that helped to resolve it -- how did you guys sort it out??

i can for the life of me not figure it out.

strangely enough, i have 2 print methods, when you go via "transfer" -- no problems, when you choose "screenprint" method, then on the checkout process i get those exact same errors.

Re: Undefined index:

Posted: Mon Oct 27, 2014 11:37 am
by cprints
Having same problem with silk screen items in cart. I think it has something to do with pricing.

Re: Undefined index:

Posted: Sat Nov 08, 2014 4:48 pm
by rumitej
Are there any results on how to fix this?