Print Page | Close Window

Variable Undefined error with include file.

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=22737
Printed Date: 28 March 2026 at 11:06pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Variable Undefined error with include file.
Posted By: mwilsonapex
Subject: Variable Undefined error with include file.
Date 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
 



Replies:
Posted By: MadDog
Date Posted: 20 February 2007 at 9:16pm
Google can answer ANY asp error you might get, http://www.google.com - http://www.google.com

-------------
http://www.iportalx.net" rel="nofollow">


Posted By: mwilsonapex
Date 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


Posted By: Freon22
Date 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.
 
http://classicasp.aspfaq.com/general/why-do-i-get-800a01f4-errors.html - http://classicasp.aspfaq.com/general/why-do-i-get-800a01f4-errors.html
 
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.


Posted By: mwilsonapex
Date 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
 
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net