perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perrin Harkins <per...@elem.com>
Subject Re: Test fails/Functionality works
Date Mon, 15 Jan 2007 17:24:42 GMT
On Mon, 2007-01-15 at 00:51 -0800, Tracy12 wrote:
> I found out that the reason for failure is the following line
> 
> use Apache2::compat;

You didn't tell us what the error message is when you have that line in.
Regardless, you shouldn't use Apache2::compat for new development.  It's
meant for porting old code.

> but when I remove this entry the make test gives no errors but functionality
> fails and in the log it says that
>  Can't locate object method "user" via package "Apache2::Connection" at
> /usr/lib/perl5/site_perl/5.8.8/AuthCAS.pm line 512.\n
> 
> which is basically   $r->connection->user($user);
> line in the source.

You should be using $r->user($user) there.

- Perrin


Mime
View raw message