Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Variable Undefined error with include file.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Variable Undefined error with include file.

 Post Reply Post Reply
Author
mwilsonapex View Drop Down
Newbie
Newbie


Joined: 20 February 2007
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote mwilsonapex Quote  Post ReplyReply Direct Link To This Post Topic: Variable Undefined error with include file.
    Posted: 20 February 2007 at 9:11pm
Hi there,
 
I'm working with Web Wiz Form version 8.0 (I think) and I'm trying to include a script into the header of the forum that will serve up my own Google like text ads, but I get a variable undefined error.  I'm using
<!--#include virtual="adplantext/inc_ad.asp"--> to try to include the ads, but I get the following error.
 
Microsoft VBScript runtime error '800a01f4'

Variable is undefined: 'Categoryname'

/adplantext/inc_ad.asp, line 28

I know this isn't really a Web Wiz issue, but I was hoping someone here might be able to point me in the right direction so I can get this up and running on my forums.  I want to wean myself from Adsense and start selling my own text ads, so that's why I'm trying to get this to work.
 
Any ideas?
 
Thanks!
 
MWilson
 
Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 20 February 2007 at 9:16pm
Google can answer ANY asp error you might get, http://www.google.com
Back to Top
mwilsonapex View Drop Down
Newbie
Newbie


Joined: 20 February 2007
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote mwilsonapex Quote  Post ReplyReply Direct Link To This Post Posted: 20 February 2007 at 9:20pm
I've checked Google but wanted to make sure that including this script into my Web Wiz forum was actually possible.  It works on other ASP pages of my site, but it keeps throwing the above error message back when included in either my forum's header or footer.
 
Am I wasting my time including this script or is it possible to make it work?
 
Thanks,
 
MWilson
Back to Top
Freon22 View Drop Down
Groupie
Groupie


Joined: 04 December 2005
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote Freon22 Quote  Post ReplyReply Direct Link To This Post Posted: 20 February 2007 at 10:03pm
Originally posted by mwilsonapex mwilsonapex wrote:

Microsoft VBScript runtime error '800a01f4'

Variable is undefined: 'Categoryname'

/adplantext/inc_ad.asp, line 28

It is telling you that you have not defined the variable named Categoryname in the inc_ad.asp page line 28.

Read this.
 
 
Web Wiz may be using Option Explicit not sure never looked to see if he is or not. Any try dim Categoryname and see if it works.


Edited by Freon22 - 20 February 2007 at 10:04pm
Back to Top
mwilsonapex View Drop Down
Newbie
Newbie


Joined: 20 February 2007
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote mwilsonapex Quote  Post ReplyReply Direct Link To This Post Posted: 20 February 2007 at 10:35pm
Hi Freon,
 
Thanks for pointing me in the right direction.  I had to add a lot of Dim lines to my forum common.asp page for all the undefined variables I kept getting, but I've got it working as planned now.

I appreciate the real help on this.

Thanks as well to you Mad Dog, I had never heard of Google before, so telling me to search for something there was really a huge help.  I bet Google will get really big and make a lot of money some day. Wink
 
 


Edited by mwilsonapex - 24 February 2007 at 10:02pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.