Subject: | module dies because of failing require |
When running a simple BeerDB application, this module dies with the following message:
caught authenticate error: Couldn't load user class BeerDB::Users at /home/dhoworth/progs/modules/Maypole/Plugin/Authentication/UserSessionCookie.pm line 171, <GEN0> line 3.
The offending line is:
$user_class->require || die "Couldn't load user class $user_class";
which will only succeed if there is a .pm file for the user class. In a standard Maypole application the classes are autogenerated and there is no such file. The $user_class package could also be in some other file.
The same code has already been commented out on line 144 so commenting out line 171 appears the simplest patch. (I have already inserted a use URI line).
Severity is important, or maybe critical, since it causes the app to die.
Cheers, Dave