Re: Bareword "Apache2::Const::OK" not allowed

[prev] [thread] [next] [Date index for 2005/05/09]

From: Stas Bekman
Subject: Re: Bareword "Apache2::Const::OK" not allowed
Date: 21:13 on 09 May 2005
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@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Bareword "Apache2::Const::OK" not allowed
Igor Chudov 20:12 on 09 May 2005

Re: Bareword "Apache2::Const::OK" not allowed
Stas Bekman 20:51 on 09 May 2005

Re: Bareword "Apache2::Const::OK" not allowed
Igor Chudov 20:58 on 09 May 2005

Re: Bareword "Apache2::Const::OK" not allowed
Stas Bekman 21:13 on 09 May 2005

Generated at 15:53 on 25 May 2005 by mariachi v0.52