Subject: | Bug Report: Can't locate object method "generate_id" when using mysql driver |
Date: | Wed, 14 Nov 2007 11:14:40 +1300 |
To: | bug-CGI-Session [...] rt.cpan.org |
From: | Steve Kieu <steve.kieu [...] ird.govt.nz> |
Hello,
I installed monarch (a nagios configuration front end) and I can not
login. Debuging shows that error message:
Can't locate object method "generate_id" via package
"CGI::Session::ID::" (perhaps you forgot to load "CGI::Session::ID::"?)
at /usr/lib/perl5/site_perl/5.8.8/CGI/Session.pm line 74., referer:
http://nagtst01/monarch/cgi-bin/monarch.cgi
digging in the monarch code it uses:in MonarchStorProc.pm
use CGI::Session qw/-ip-match/;
the error happend when execute the below line:
my $session = new CGI::Session("driver:MySQL", undef, {Handle=>$dbh});
$dbh is db handle and I have tested it; it is ok.
The version having problem is: 4.20. Downgrading CGI::Session to 4.10
will solve the problem.
I hope this helps.
Regards,