• 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.

Item4710: Can't locate object method "findUser" via package "TWiki::Users" at

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension BuildContrib Urgent Closed   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


I installed TWiki 4.2-beta on the same server we have been using a long time. I just installed clean and moved our web to the new installation, keeping the filestructure, reinstalled plugins.

It mostly work just fine, the problem originally was WorkflowPlugin that says "TWiki detected an internal error.....Can't call method 'session' on an undefined value", so those topics dont work.

Apache error log says:

[Mon Sep 24 01:43:02 2007] [error] [client] Can't call method "session" on an undefined value at /srv/www/twiki/lib/TWiki/If/Node.pm line 85., referer:
We use Apache ldap-login for Novell eDir only for auth. Users are TWiki users. So i guess (what do I know?) it's a Usermapping thing internally in TWiki 4.2-beta.

Several plugins seem to install ok via web interface but when I try to install them with "perl plugin_installer.pl" from twiki directory a good few of them says "Can't locate object method findUser via package TWiki::Users at <plugin-name> line xx" . I would suspect it was a local error only because it happens to so many plugins, but otoh the error refers to core stuff, I think.

Some of the plugins are: DBCacheContrib, LdapContrib, WorkflowPlugin, BlogAddon, PublishContrib ++

-- TWiki:Main/LarsEik - 23 Sep 2007

The error is caused by some compatibility code that is triggered when $TWiki::cfg{AdminUserLogin} is undefined. Please run configure, define this option, and try again. I will fix the code, but it'll take a while to bubble through to all the plugins frown

Later: just confirmed that {AdminUserLogin} has to be defined for the installers to work. It will be defined on a new install, but because you are probably using a LocalSite.cfg from a previous install, it's not there.

-- TWiki:Main.CrawfordCurrie - 24 Sep 2007

I didnt copy existing LocalSite, did fresh install. and AdminUserLogin er 'admin'.

-- TWiki:Main.LarsEik - 24 Sep 2007

I have checked all I can think of here, the song remains the same . Most annoying is Workflow topics saying: Can't locate object method "isAdmin" via package "lek" (perhaps you forgot to load "lek"?) at /srv/www/twiki/lib/TWiki/Plugins/WorkflowPlugin.pm line 445. #Her 'lek' is my ldap auth username. It seems to take my LoginName instead of some object to load. I will try a later nightly build maybe tonight. Glad to see those builds so it's easier to help test smile

-- TWiki:Main.LarsEik - 24 Sep 2007

Latest nightly build gave the same result.

-- TWiki:Main.LarsEik - 24 Sep 2007

I now tried to empty the twiki directory and downloaded the very latest nightly build (TWiki-4.2.0-beta2-auto15028.zip) and installed the workflow plugin...same result. The plugin installer script says it cannot locate object method 'findUser' via package TWiki::Users..Also happend with LdapContrib..

-- TWiki:Main.LarsEik - 24 Sep 2007

Lars, as I said, it will take time to bubble through. I don't imagine WorkflowPlugin has been rebuilt in the last few hours. But you don;t need to run the installer for the plugin to work (it has not specialised install steps) so you can ignore that message for now (the one frmo the installer)

-- TWiki:Main.CrawfordCurrie - 24 Sep 2007

I have now abstracted out the body of the installer script and incorporated it into the standard release, so it should be easier to maintain.


Summary Can't locate object method "findUser" via package "TWiki::Users" at
ReportedBy TWiki:Main.LarsEik
Codebase 4.2.0
SVN Range TWiki-4.3.0, Sat, 22 Sep 2007, build 14996
AppliesTo Extension
Component BuildContrib
Priority Urgent
CurrentState Closed

Checkins TWikirev:15034 TWikirev:15035 TWikirev:15036 TWikirev:15049
TargetRelease n/a

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2007-09-24 - CrawfordCurrie
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback