[Catalyst] Authentication::Store::DBIC works undermyapp_server.pl but not Apache/mod_perl

Matt S Trout dbix-class at trout.me.uk
Mon Jul 31 15:13:56 CEST 2006


Rodney Broom wrote:
> From: "Kevin Old" <kevinold at gmail.com>
> 
>> I've had this same error message several times before.  Usually I need
>> to upgrade one or all of the modules related to this.
> 
> Eee, I never like upgrading as a trouble shooting measure. I don't mind if I know there's a solution in the upgrade. Also, Authentication and Authentication::Store::DBIC are brand new as of yesterday.
> 
> Some debugging is yeilding more clues. Under myapp_server.pl, the address of $config->{auth} stays the same from DBIC::setup_finished() to DBIC::User::new(). Under apache, the ref changes.

Your mod_perl config is loading MyApp.pm twice, and I suspect setup is running 
twice but setup_finished is already set the second time through. This will 
break stuff :)



More information about the Catalyst mailing list