Martin Moss wrote:
All,
I'm having some problems with Apache giving me grief, or most probably me getting my knickers in a complete twist. I get the following error:-
Can't call method "is_initial_req" without a package or object reference at .........
It seems to happen when my URL ends like this:-
/somepath/16 but not when it ends like this:- /somepath/16/
/somepath/16 is resollved by mod_dir to /somepath/16/ using an internal redirect, and...
unless ($r->is_main )
{
print STDERR "Apache::Request is not Main, Getting Main\n";
print STDERR Dumper($r);
$r=$r->main;
print STDERR "Main Apache::Request is:-\n";
print STDERR Dumper($r);
print STDERR "DECLINING!!!!!!!!!!!!\n";
return DECLINED;
}
you're not returning an object from your constructor on internal redirects :)
HTH
--Geoff
