-------------8<---------- Start Bug Report ------------8<---------- 1. Problem Description:
Sorry - is this mason's problem?
Apache does not start using latest mod_perl2 (cvs) when using a mason startup script.
Failure matrix:
mod_perl version mason version using startup.pl using simple-mason.pl OK? -------------------------------------------------------------------------- ---- 08-source 1.16 yes yes OK 08-source 1.19 yes yes OK 09-cvs 1.19 yes yes FAIL 09-cvs 1.16 yes yes FAIL 09-cvs 1.19 no-in httpd no mason OK 09-cvs 1.19 no-in httpd no-in httpd OK
Apache startup console output:
[Tue Mar 04 16:45:09 2003] [error] Global $r object is not available. Set: PerlOptions +GlobalRequest in httpd.conf at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 573. Compilation failed in require at (eval 3) line 1.
[...]
HTML::Mason::ApacheHandler revelant lines:
my $allowed_params = $class->allowed_params(%defaults, %params);
573: if ( exists $allowed_params->{comp_root} and my $req = $r || Apache->request ) # DocumentRoot is only available
why does Mason needs $r at the server startup? There is no request object at the server startup, so it's only fair that mp reports the error.
__________________________________________________________________ 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