perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Chamas <>
Subject Re: $self->{asp} nor defined in Response?!
Date Tue, 21 Jan 2003 17:07:57 GMT
Theo E. Schlossnagle wrote:
> Hi, we run Apache::ASP on several largish sites...
> Every once in a while, I get the following error in my error logs and it 
> causes either an internal server error or the page just not to load 
> (depending on whether or not the offense happens in an eval {} block).
> We don't use $Response->Log() anywhere in our code, so it must be called 
> by Apache::ASP internals.  Any ideas on why this is heppening or even 
> better, how to stop it?
> [Tue Jan 21 11:23:45 2003] [error] [asp] [1638] [error] error compiling 
> flash.asp: Can't call method "Log" on an undefined value at 
> /usr/lib/perl5/site_perl/5.8.0/Apache/ASP/ line 105. <--> 
> Compilation failed in require at /path/to/flash.asp line 4. <--> BEGIN 
> failed--compilation aborted at /path/to/flash.asp line 4. <--> , 
> /usr/lib/perl5/site_perl/5.8.0/Apache/ line 1433

This is when an old $Response object is no longer valid.  This is normally
caused by my closure or bad scoping issues.

Set these things to help catch these problems:

   PerlSetVar UseStrict 1
   PerlWarn On

And also always reference ASP object like this in XMLSubs:


Alternatively, to make sure you do the former, put XMLSubs in
a package outside of global.asa



Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.      
NodeWorks Link Checking      

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message