Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-ASP 7.0 Questions
 shopsearch.asp / shopsearchsubs.asp
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jru
Starting Member

United Kingdom
11 Posts

Posted - August 18 2012 :  12:23:37  Show Profile  Reply with Quote
Hi,

We have recently installed V7 from scratch as a new customer and in advanced search we are receiving the following;

Microsoft VBScript runtime error '800a0009'

Subscript out of range: '4'

/shopsearchsubs.asp, line 227

We haven't modified any code so any idea why we are getting this? We can't really go live without a working search function!!

Regards,

Martin

manilow
VP-CART New User

France
134 Posts

Posted - August 19 2012 :  05:39:53  Show Profile  Visit manilow's Homepage  Reply with Quote
Martin,

I think it has something to do with the following line which I corrected since not alll search fields were being displayed :

shopsearchsubs.asp, around line 218:

Change
for i = 0 to (ubound(fieldArray) - 1)

To
for i = 0 to ubound(fieldArray)

Be sure to specify correctly the xsearchfields field, for example :
cname,cdescription,ccode,productmetakeyword

Regards,

Erik
www.AquaThermia.com

Go to Top of Page

jru
Starting Member

United Kingdom
11 Posts

Posted - August 20 2012 :  11:35:41  Show Profile  Reply with Quote
Hi Erik,

Thanks for the reply - does that mean that the source code as shipped by VPASP contains a/some bugs?

Martin
Go to Top of Page

jru
Starting Member

United Kingdom
11 Posts

Posted - August 20 2012 :  11:58:11  Show Profile  Reply with Quote
Hi Erik,

I've messed around a bit and I had 5 fields specified in xsearchfields and it looks like you can only specify 4...I haven't found any documentation saying that is the case though! but I won't have to change the code

Martin
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00