keng
VP-CART New User
152 Posts |
Posted - November 11 2004 : 00:03:33
|
Hi,
Randomly, I would have a product that if I test to purchase it by clicking the, "Order selected item" to purchase, I get this error message:
Microsoft VBScript runtime error '800a0009'
Subscript out of range: '7'
/shop/shopproductselect.asp, line 55
"What does it mean and what can I do to fix it?" thanks?
|
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - November 11 2004 : 02:55:39
|
this means that there's an array variable that has run out of space.
eg a variable has been defined like:
Dim productcodeslist(10)
and then later on the asp code has exceeded that 10 declared/reserved values and tried to use/create an 11'th value in the list.
in your case it seems to be the cart-processing that has the problem, where there are too many items (or quantities) being selected.
What you could do to see what values are causing the problem is to take the comment (single quote) off the beginning of the line about 10 lines above:
'Debugwrite "count=" & count & "Proindex" & Prodindex & " quantities=" & quantities
and set debug mode on; that'll show you the values and you'll be able to spot if anything's amiss.
it might be getting caused by some kind of mis-match between your config options; you could review your quantity/cart-related config options and double-check they line up with each other.
Simon Barnaby Developer [email protected] www.BigYellowZone.com Web Design, Online Marketing and VPASP addons
Edited by - devshb on November 11 2004 02:57:02
Edited by - devshb on November 11 2004 02:58:31
Edited by - devshb on November 11 2004 02:59:28 |
|
|