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