Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x00x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat Linux ES3, kernel 2.4.21-40ELsmp
Web server: Apache 2.0.46
Perl version: 5.8.0
Client OS: MS Windows 2000 Professional
Web Browser: IE 6.0.2800
Categories: Installation, Security, Authorisation

-- JeKancia - 29 Mar 2006

Answer

ALERT! 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

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2006-04-05 - WillNorris
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.