Page 1 of 1

Index out of range error

Posted: Thu Mar 25, 2010 3:17 pm
by MarkStout
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.

Re: Index out of range error

Posted: Thu Mar 25, 2010 4:46 pm
by Shopping Cart Admin
Hello Mark,

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

Re: Index out of range error

Posted: Fri Mar 26, 2010 12:38 pm
by mazhar
Mark one more thing do you have any thing customized in your cart or its running out of the box?

Re: Index out of range error

Posted: Fri Mar 26, 2010 9:16 pm
by MarkStout
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.

Re: Index out of range error

Posted: Fri Mar 26, 2010 9:18 pm
by MarkStout
PS, the products currently giving us trouble were entered manually, they were not imported in.

Re: Index out of range error

Posted: Sat Mar 27, 2010 2:13 pm
by jmestep
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.