Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Problems and bugs
 Error with "ask a question"
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

RegisterGuy
Starting Member

17 Posts

Posted - January 26 2005 :  12:17:39  Show Profile  Reply with Quote
I added the option to add ask a question,but when I go to ask a question this massage comes up.

=======================================

Microsoft VBScript runtime error '800a01f4'

Variable is undefined: 'ShopTemplateWrite'

/shop/shopquestion.asp, line 185

====

I tired to create it (Dim ShopTemplateWrite) but then I get this error!

===============================================

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'ShopTemplateWrite'

/shop/shopquestion.asp, line 186


greatphoto
VP-CART Super User

USA
304 Posts

Posted - January 26 2005 :  21:53:51  Show Profile  Reply with Quote
Line 4 of the VP-ASP V5.50 version of shopquestion.asp should be:
<!--#include file="shopfileio.asp"-->

I think you have deleted this by mistake based on the error message you received, and the fact that the error message line number is off by one.

Explanation:
ShopTemplateWrite is a subroutine. The first error occurs because the VPScript interpreter can't find the subroutine, so just guesses it must be a variable. You don't want to define a variable by that name yourself, because that just compounds the problem.

ShopTemplateWrite is defined in shopfileio.asp, so shopfileio.asp has to be loaded by shopquestion.asp so the interpreter can find it.

Go to Top of Page

RegisterGuy
Starting Member

17 Posts

Posted - January 27 2005 :  16:50:25  Show Profile  Reply with Quote
quote:

Line 4 of the VP-ASP V5.50 version of shopquestion.asp should be:
<!--#include file="shopfileio.asp"-->



I found the problem, it is not included in the free version.(But I could not find it documented but it should not give an error, So I guess it is a BUG)

But if you edit the "shopproductformat.asp" and search for xProductQuestion, you can change the the link to go to your contact page of a special page.


Edited by - RegisterGuy on January 27 2005 17:01:41
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