[Catalyst] Some "How Do I ..." questions

Andy Grundman andy at hybridized.org
Wed Apr 27 16:55:38 CEST 2005

Bill Moseley wrote:
> Still same error:
> [Wed Apr 27 07:44:41 2005] [catalyst] [error] Caught exception "Can't locate object method "search" via package "ServerDB::M::CDBI::User" (perhaps you forgot to load "ServerDB::M::CDBI::User"?) at /home/moseley/ServerDB/script/../lib/Catalyst/Plugin/Authentication/CDBI.pm line 248."

When starting script/server.pl, check the debug output.  You should see 
a line like this:
[debug] Loaded tables "application role server support_history user 

If you see: Loaded tables "" it means it's not finding your database.

> Again, I don't have a separate module: ServerDB::M::CDBI::User in the
> distribution.

Right, the module will be created on the fly by Class::DBI::Loader when 
reading the database.

Make sure you're running the latest versions of Catalyst, 
Catalyst::Model::CDBI and Class::DBI::Loader.  See if there are any 
other errors in the debug log.


More information about the Catalyst mailing list