Question
I installed CGI::Session version 4.10 and turned on the
UseClientSessions LocalLib.cfg setting,
TemplateLogin, default httpd password manager. When I try to go to the default twiki/bin/view, I get a Perl error in my Apache logs:
"Can't use string ("CGI::Session") as a HASH ref while "strict refs" is use at Session.pm line 145"
If I turn useClientSessions off - the view works, but login does not remember or prompt for name when editing (as I would expect).
Any suggestions on how to fix this? I am trying to test the login.
Environment
--
JeKancia - 29 Mar 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
This website shows that it could be a problem with defining subroutines in a bad order:
http://www.troubleshooters.com/codecorn/littperl/perlfuncorder.htm
Could this be a problem with the Twiki?
--
JeKancia - 29 Mar 2006
Problem found - I also posted a question about this with the CGI::Session users list. An author responded that they introduced the error recently.
I'm trying to get an older version of the CGI::Session module or will use a new release, if they can get it posted ASAP.
--
JeKancia - 29 Mar 2006
JeKancia, thank you for taking the time to research this. There have been several similar reports, and I was mystified.
--
CrawfordCurrie - 30 Mar 2006
Version 4.03 does not show this error.
--
BerndDriesen - 30 Mar 2006
CPAN:CGI::Session
4.11 fixes the bug. it has now been closed at
http://rt.cpan.org/Public/Bug/Display.html?id=18455
--
WillNorris - 03 Apr 2006