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

Item3577: TWikiRegistration error

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine TWikiRegistration Urgent No Action Required TWiki:Main.AntenoreGatta n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Hi all,

Surely we have a configuration problem but I cannot figure out where, can you please help me to find it?

Since I've updated to TWiki 4.1.1 users are not be able to register anymore.

When they try to put the registration code they receive this error message:


Can't call method "userLoggedIn" on an undefined value at /content/twiki/lib/TWiki/UI/Register.pm line 797.

 at /content/twiki/lib/TWiki/UI/Register.pm line 797

   TWiki::UI::Register::finish('TWiki=HASH(0x73737c)', '/content/twiki/data/RegistrationApprovals') called at /content/twiki/lib/TWiki/UI/Register.pm line 98

   TWiki::UI::Register::register_cgi('TWiki=HASH(0x73737c)') called at /content/twiki/lib/TWiki/UI.pm line 157

   TWiki::UI::__ANON__() called at /usr/local/lib/perl5/site_perl/5.8.7/Error.pm line 417

   eval {...} called at /usr/local/lib/perl5/site_perl/5.8.7/Error.pm line 409

   Error::subs::try('CODE(0x726740)', 'HASH(0x106dff4)') called at /content/twiki/lib/TWiki/UI.pm line 197

   TWiki::UI::run('CODE(0xc5785c)') called at /content/twiki/bin/register line 31

   ModPerl::ROOT::ModPerl::Registry::content_twiki_bin_register::handler('Apache2::RequestRec=SCALAR(0x1f82d4)') called at /usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris/ModPerl/RegistryCooker.pm line 203

   eval {...} called at /usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris/ModPerl/RegistryCooker.pm line 203

   ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x1f8268)') called at /usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris/ModPerl/RegistryCooker.pm line 169

   ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x1f8268)') called at /usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris/ModPerl/Registry.pm line 30

   ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x1f82d4)') called at -e line 0

   eval {...} called at -e line 0.



Apache access log:

xxx.xxx.xxx.xxx - newuser [07/Feb/2007:11:53:05 +0100] "POST /twiki/bin/register/Main/WebHome HTTP/1.1" 200 1679 "http://intranet.domain.com/twiki/bin/view/TWiki/TWikiRegistration" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0"

Apache error log:


nothing

TWiki log:


| 07 Feb 2007 - 11:53 | No password specified for newuser - using random=2898169912

For the last error message I add the passwords field in the TWikiRegistration form, but the initial problem still exist.

We use the Apache authentication with a mysql back-end and I set the Login Manager and Password Manager as null. (for trouble shooting I also tried with default login/password managers.)

Attached you can find our configuration, I just modified IP, host name and similar data...

Thanks in advance Best regards

-- TWiki:Main.AntenoreGatta - 07 Feb 2007

When I use LDAP authentication where the LDAP stuff is taken care by Apache I choose Login Manager to be Apache Login and not none.

-- TWiki:Main.KennethLavrsen - 13 Feb 2007


Thanks Kenneth. I tried Apache Login Manager but I still have the problem.

To workround it I tried to uncomment (TWiki 4.1.0 twiki/lib/TWiki/UI/Register.pm line 799)

$session->{client}->userLoggedIn( $data->{LoginName}, $data->{WikiName} );

In this way the registration process works.

Any idea?

Thanks again

-- TWiki:Main.AntenoreGatta - 07 Feb 2007

Neither TWiki 4.1.0 nor 4.1.1 have the string {client} anywhere in the core code. Further, in both releases line 797 of Register.pm is a blank line. I just downloaded both zips to check. Suggest you revert to the released code and test again.

CC

The reporter clearly does not run a 4.1 release. Or a wrongly installed one. This is a support question and not a bug. Nothing further to do it seems.

http://en.wikipedia.org/wiki/Red_herring

KJL

ItemTemplate
Summary TWikiRegistration error
ReportedBy TWiki:Main.AntenoreGatta
Codebase 4.1.0
SVN Range TWiki-4.1.1, Sun, 04 Feb 2007, build 12769
AppliesTo Engine
Component TWikiRegistration
Priority Urgent
CurrentState No Action Required
WaitingFor TWiki:Main.AntenoreGatta
Checkins

TargetRelease n/a
ReleasedIn

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt CGI-SETUP.txt r1 manage 2.9 K 2007-02-07 - 13:44 UnknownUser CGI-SETUP.txt
Texttxt ENVIRONMENT.txt r1 manage 1.1 K 2007-02-07 - 13:44 UnknownUser ENVIRONMENT.txt
Unknown file formatcfg LocalSite.cfg r1 manage 8.3 K 2007-02-07 - 13:45 UnknownUser LocalSite.cfg
Unknown file formatconf httpd.conf r1 manage 3.1 K 2007-02-07 - 13:45 UnknownUser twiki httpd.conf
Unknown file formatconf mysql.conf r1 manage 0.5 K 2007-02-07 - 13:45 UnknownUser mysql.conf
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2007-03-03 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback