Author |
Topic |
|
RegisterGuy
Starting Member
17 Posts |
Posted - January 26 2005 : 12:17:39
|
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
|
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.
|
|
|
RegisterGuy
Starting Member
17 Posts |
Posted - January 27 2005 : 16:50:25
|
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 |
|
|
|
Topic |
|