Tags:
create new tag
view all tags

SID-00663: Warning in TWikiUserMapping.pm line 471

Status: Answered Answered TWiki version: 4.3.2 Perl version: 5.10.0
Category: CategoryError Server OS: Windows 2003 Server running in VM Vsphere Last update: 15 years ago

Hi Peter and all:

I am running Twiki version : This site is running TWiki version TWiki-4.3.2, Wed, 02 Sep 2009, build 18148, Plugin API version 1.2

Everything seems to be up and working but when I look at the log, I see the following message:

[Thu Dec 10 17:35:58 2009] [error] [client 139.158.11.190] [Thu Dec 10 22:35:57 2009] view: Use of uninitialized value in string eq at /twiki/lib/TWiki/Users/TWikiUserMapping.pm line 471., referer: http://x.x.x.x/bin/oops/Main/Name?twiki_redirect_cache=fab4a1bce7d09420f3eec375b22539dd

This happens every time the user logs in and browse through the site. If i go to Configure and disable the setting for usermapping (so that only guest and admin) login to the site, there is no errors in the log. I have not been able to find too much info on this error on the google. The username is registered in WikiName format and he does not see any error message on his screen. I only see this error in the logs. Can i just ignore the error? It happens to all users. I am using TwikiUserMapping for userMappingManager setting. and i f I switch to Baseusermapping then there is no problem.

-- AlexFerucci - 2009-12-10

Discussion and Answer

Hi,

I ran into the same problem. <br/> When other than admin user tries to login, the following error msg is displayed in the browser: <br/> Software error:=<br/> <br/> =Use of uninitialized value in string eq at /xxx/lib/TWiki/Users/TWikiUserMapping.pm line 471. <br/> Config: <br/>

  • TWiki-4.3.1, Wed, 29 Apr 2009, build 18054, Plugin API version 1.2
  • TWikiUserMapping is used
  • RedHat Linux 2.6.30.5-dsa-amd64 (x86_64-linux-gnu-thread-multi)
  • Perl 5.010000

-- ZsoltFelber - 2009-12-21

Please file a bug report with details. (Link in sidebar)

-- PeterThoeny - 2009-12-21

I just thought I'd add a "ditto" to the list. I'm getting similar errors whenever I request any topic. But the topic displays just fine:

[Mon Dec 21 17:48:53 2009] [error] [client 10.84.125.100] [Mon Dec 21 17:48:53 2009] view: Use of uninitialized value
in string eq at /Library/WebServer/Documents/twiki/lib/TWiki/Users/TWikiUserMapping.pm line 471.
Then when I attempt to edit a topic, I'm taken to the edit screen, and the changes are accepted, so TWiki seems to be working. But we also get these two errors in the apache error_log file:
[Mon Dec 21 17:49:17 2009] [error] [client 10.84.125.100] Use of uninitialized value in
string eq at /Library/WebServer/Documents/twiki/lib/TWiki/Users/TWikiUserMapping.pm
line 471., referer: http://xxx.yyy.com/wiki/Myweb/MyTopic
[Mon Dec 21 17:49:18 2009] [error] [client 10.84.125.100] Use of uninitialized value in
string eq at /Library/WebServer/Documents/twiki/lib/TWiki/Users/TWikiUserMapping.pm
line 471., referer: http://xxx.yyy.com/wiki/bin/edit/Myweb/MyTopic?t=1261446533;nowysiwyg=0
I have reported this in the Bugs web: TWikibug:Item6375

-- BarryLake - 2009-12-22

Thanks Barry!

-- PeterThoeny - 2009-12-22

You can fix this error by making a small change to the twiki/lib/TWiki/Users/TWikiUserMapping.pm file. The offending line, as reported in the Apache error_log, is line 471:

   return 1 if $cUID eq $this->{session}->{user};
Change that to:
   return 1 if (defined $this->{session}->{user} && $cUID eq $this->{session}->{user});
That certainly fixes the errors in the Apache log, but I'm not sure if it's the correct fix, as it simply masks what might be another potential problem elsewhere. It might be worth someone's while to determine why the $this->{session}->{user} variable is not defined when perhaps it should be.

-- BarryLake - 2010-05-12

Thank you Barry! Fix looks good. I checked in in SVN trunk and 4.3 branch. I also added you to the AUTHORS file of TWiki.

-- PeterThoeny - 2010-05-12

      Change status to:

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.
SupportForm
Status Answered
Title Warning in TWikiUserMapping.pm line 471
SupportCategory CategoryError
TWiki version 4.3.2
Server OS Windows 2003 Server running in VM Vsphere
Web server Apache 2.2
Perl version 5.10.0
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2010-05-12 - PeterThoeny
 
  • 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.