perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: Bareword "Apache2::Const::OK" not allowed
Date Mon, 09 May 2005 21:13:47 GMT
Igor Chudov wrote:
> Well, it complained about all uses of Apache2::Const
> and APR::Const.
> 
> I replaced all such calls with calls().
> 
> After that, it complained about line 122 of
> RegistryCooker:
> 
> sub init { 
>     $_[0]->{REQ}      = $_[1]; 
>     $_[0]->{URI}      = $_[1]->uri; 
> ^^^^^^^^^^^^^^^^ this line
>     $_[0]->{FILENAME} = $_[1]->filename; 
> } 
> 
> [Mon May 09 15:57:41 2005] [error] [client
> 64.94.157.1] Can't locate object method "uri" via
> package "Apache::RequestRec" at
> /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/ModPerl/RegistryCooker.pm
> line 122.\n
> 
> any ideas?

I guess that explains it. there is no Apache::RequestRec in mp2, there is
Apache2::RequestRec. Your install probably has a mix of pre-RC5 and post 
RC5, try nuking *all* mod_perl modules in your perl tree, install from 
scratch and try again. If the problem persist please submit a  proper bug 
report as explained at: http://perl.apache.org/bugs/ thanks.

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Mime
View raw message