Chuck Goehring wrote:
> You're right. I'm getting impatient and jumping ahead. Pasted directly
> from your post, restarted Apache and get same thing
>
> [Tue Apr 23 12:16:54 2002] [notice] Parent: Created child process 2560
> [Tue Apr 23 12:16:58 2002] [notice] Child 2560: Child process is running
> [Tue Apr 23 12:16:58 2002] [notice] Child 2560: Acquired the start mutex.
> [Tue Apr 23 12:16:58 2002] [notice] Child 2560: Starting 250 worker threads.
> [Tue Apr 23 12:17:46 2002] [error] 2560: ModPerl::Registry: `Can't call
> method "args" on an undefined value at c:/perl/5.6.1/lib/CGI.pm line 433.
>
> It is referring to the IF statement:
> if ($MOD_PERL) {
> $query_string = Apache->request->args;
> } else {
> $query_string = $ENV{'QUERY_STRING'} if defined $ENV{'QUERY_STRING'};
> $query_string ||= $ENV{'REDIRECT_QUERY_STRING'} if defined
> $ENV{'REDIRECT_QUERY_STRING'};
> }
I know what was missing.
add 'PerlOptions +GlobalRequest', like so:
<Location /perl>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options ExecCGI
PerlSendHeader On
PerlOptions +GlobalRequest
</Location>
http://perl.apache.org/preview/modperl-docs/dst_html/docs/2.0/user/config/config.html#PerlOptions_Directive
# GlobalRequest
Setup the global request_rec for use with Apache->request
Sorry for missing this one, I'm not used to it yet :)
Also I'd like to repeat that the 2.0 test suite is the best place to
learn how, before the docs will be completed.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com