• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Can't use an undefined value as an ARRAY reference at /data2/usr/lib/cgi-bin/MAIN/lib/TWiki/User.pm line 381

I'm wondering where this $user->{groups} gets worked out - it looks like its only initialised if you do a revers lookup - ie look for the members of a particular group frown

turns out {groups} was not being initialised for each user - the code is a bit chicken and egg too, but so long as you don't try to call getGroups on lots of users, there's little wastage (i think)

also added TWikiBaseGroup ( TWikiBaseGroup ) to list the groups a user is in



Does this affect any TWikiVariables, or can it be reverted in the interest of Item1572?

-- SP

na, its really just sloppy coding

-- SD

Summary $user->getGroups() causes crash when called on a simple user
ReportedBy TWiki:Main.SvenDowideit

SVN Range Fri, 27 Jan 2006 build 8562
AppliesTo Engine

Priority Normal
CurrentState Closed

Checkins 8586 8587
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r7 - 2006-02-03 - SvenDowideit
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback