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/Response.pm 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/ASP.pm 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: $main::Response Alternatively, to make sure you do the former, put XMLSubs in a package outside of global.asa Regards, Josh ________________________________________________________________ Josh Chamas, Founder phone:925-552-0128 Chamas Enterprises Inc. http://www.chamas.com NodeWorks Link Checking http://www.nodeworks.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
