Index out of range error

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
MarkStout
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Thu Mar 25, 2010 3:09 pm

Index out of range error

Post by MarkStout » Thu Mar 25, 2010 3:17 pm

We have had trouble for a year with our cart periodically giving an "index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index" error to our clients when trying to order products. At first this could be "fixed" by deleting the product and entering it again. Now we are finding that quite frequently when we enter products or make changes to products we get this error. I have not been able to find anything in help or support docs that cover this. The error occurs when the customer is on the product detail page and attempting to select the quantity or put it in the cart. Here is a link to a product that is doing so. http://www.wystonestea.com/The-Smart-Te ... -P230.aspx

Any help would be GREATLY APPRECIATED.

User avatar
Shopping Cart Admin
AbleCommerce Admin
AbleCommerce Admin
Posts: 3055
Joined: Mon Dec 01, 2003 8:41 pm
Location: Vancouver, WA
Contact:

Re: Index out of range error

Post by Shopping Cart Admin » Thu Mar 25, 2010 4:46 pm

Hello Mark,

What version of AbleCommerce are you running? Have you used the dataport or imported products directly into the database?
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Index out of range error

Post by mazhar » Fri Mar 26, 2010 12:38 pm

Mark one more thing do you have any thing customized in your cart or its running out of the box?

MarkStout
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Thu Mar 25, 2010 3:09 pm

Re: Index out of range error

Post by MarkStout » Fri Mar 26, 2010 9:16 pm

It is version 7.0.0 I was not involved in the build of the site. It was done by others. I know there were modifications to the appearance of the site, but I don't know if there were any to the working of the cart or the code.

MarkStout
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Thu Mar 25, 2010 3:09 pm

Re: Index out of range error

Post by MarkStout » Fri Mar 26, 2010 9:18 pm

PS, the products currently giving us trouble were entered manually, they were not imported in.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Index out of range error

Post by jmestep » Sat Mar 27, 2010 2:13 pm

You might not be able to track the error down without comparing original Able code with code on the current product page.
Check the App_Code/ProductHelper.cs and ConLib/BuyProductDialog files.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply