RE: mod_perl 1.21 - CGI.pm 2.56 error in phase other than content
PerlPostReadRequestHandler 'sub { Apache-request(shift) }' doug, thanks for the response. I had tried the bandaid with no luck. Probably should have said that in the post :-) I will try to get a simple example out today that shows the problem in full. I have worked around it by creating an empty CGI object and the populating it from $r-content. But this seems to be a really ugly way through the problem. I have also noticed some funny effects on basic_auth when I do this. But I will try to get a small example of the problem. Overall what I am trying to achieve (in common with others) is to enable a handler to make decisions about a request based on data in a POST request and still have this data correctly available for later phases of the request.
Re: mod_perl 1.21 - CGI.pm 2.56 error in phase other than content
On Fri, 10 Dec 1999 [EMAIL PROTECTED] wrote: Does nay one know how to get round the bug in the above combination. When I create a new CGI in any phase other than Response I get a Can't call method "register_cleanup" on an undefined value at /usr/lib/perl5/5.00505/CGI.pm line 263. This would appear to be caused by apache-request not returning the request. from ~/Mail/.sent-mail-sep-1999: To: Ken Williams [EMAIL PROTECTED] cc: al [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: Help! CGI.pm problems with Apache In-Reply-To: [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 3 Aug 1999, Ken Williams wrote: I believe you need to upgrade your mod_perl, this bug has been squashed in 1.21. this is actually not related to that bug. the bug 1.21 fixed what that registered cleanups were not always called. this bug is triggered by CGI.pm calling Apache-request before the content response phase. Ali, give us more details on your module, what phase is it called in? you should be able to bandaid with this configuration: PerlPostReadRequestHandler 'sub { Apache-request(shift) }' -Doug
mod_perl 1.21 - CGI.pm 2.56 error in phase other than content
Does nay one know how to get round the bug in the above combination. When I create a new CGI in any phase other than Response I get a Can't call method "register_cleanup" on an undefined value at /usr/lib/perl5/5.00505/CGI.pm line 263. This would appear to be caused by apache-request not returning the request. Any ideas ? SAM