Shannon Eric Peevey wrote:
Hi!
I am in the midst of porting Apache::AuthenCache to mp2, and am having some
issues getting any method from Apache::Module.
I have downloaded the newest CVS snapshot:
modperl-2.0_20040819104308.tar.gz
Am running:
Apache/2.0.50
mod_perl/1.99_15-dev
Perl/v5.8.4
If I run MethodLookup, it correctly displays the methods available from the
module:
[...]
But, when I run make test I get:
Undefined subroutine &Apache::Module::loaded called at
blib/lib/Apache/AuthenCache.pm line 476.
I have found that various docs show different syntax for the new
Apache::Module::loaded, so I tried Apache::Module->loaded as well, which throws
a different error:
Can't locate object method "loaded" via package "Apache::Module"
No, no, it should be invoked as a function, I've fixed the doc.
I am using:
use Apache::Module;
if (Apache::Module::loaded('Apache::Status')) {
# $r->log->debug("status: launching menu");
Apache::Status->menu_item('AuthenCache' => 'AuthenCache Menu Item',
\&status_menu);
}
Looks right to me.
How do I go about debugging this thing?
Do all the tests pass for you? This test: t/response/TestAPI/module.pm
tests this interface. You can run it with:
t/TEST -v t/api/module.t
--
__________________________________________________________________
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html