Jie Gao wrote:
Hi All,

I am getting the following error mesg:

Can't locate object method "run_access_checker" via package "Apache::RequestRec" at /usr/local/perl-5.8.0_threaded/lib/site_perl/5.8.0/xxx/.....pm

for the section:

sub handler {
    my Apache::Connection $c = shift;
    my APR::Socket $socket = $c->client_socket;
    my $r = Apache::RequestRec->new($c);
    $r->location_merge(__PACKAGE__);
    my $rc = $r->run_access_checker();
......


Any idea why?


I am using 2.0.44 with mp2 from cvs.

Guessing that you haven't loaded Apache::HookRun.


% lookup run_access_checker
to use method 'run_access_checker' add:
        use Apache::HookRun ();

http://perl.apache.org/docs/2.0/api/ModPerl/MethodLookup.html#Command_Line_Lookups

Linked to from:
http://perl.apache.org/docs/2.0/user/compat/compat.html#Code_Porting
and:
http://perl.apache.org/docs/2.0/devel/porting/porting.html#Figuring_Out_What_Modules_Need_to_be_Loaded

__________________________________________________________________
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



Reply via email to