perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: Can't locate object method "RequestRec", upgrade ?
Date Fri, 02 May 2003 07:16:18 GMT
Addady wrote:
> Hello,
> 
> I'm trying to upgrade an old mod_perl  module to  v2.0 on RedHat 8.0 (apache
> 2.0.40 mod_perl 1.99_05-3)
> 
> It fail on:
> Can't locate object method "RequestRec" via package ... line 41.
> 
> === Some of the code :
> use Apache::Connection;
> use Apache::RequestRec;
> use Apache::RequestUtil;
> use Apache::Const qw(OK DECLINED);
> use Apache::Log;
> ...
> sub handler : method {
>   my $r = shift;
>   return DECLINED unless $r->RequestRec->is_initial_req;  # <== line 41

eh? where is this code from?

Should be:

return DECLINED unless unless $r->is_initial_req

> ===
> 
> I read in previous posts that RequestRec was not fully implemented.
> Should I upgrade to the latest mod_perl 1.99_09 or csv ?

You should do that in any case. 1.99_05 is a way too old and so many things 
have changed since that version was released.

> If I need/want to upgrade what to set as MP_AP_PREFIX ?
> 
>>perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2

if that's where you apache is, that's correct.

> I'm using the binary installation of apache came with RedHat 8.0


-- 


__________________________________________________________________
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