Question
After upgrading from 01-Feb-2003 to 01-Sep-2004 user self registration no longer works.
Browser shows Apache Internal Server Error 500
Apache logs have the following:
Undefined subroutine &TWiki::User::NoPasswdUser::_htpasswdGeneratePasswd called at ../lib/TWiki/User/NoPasswdUser.pm line 124.
Premature end of script headers: register
Configuration
- htpasswd Format Family: htpasswd:crypt
- htpasswd Encoding: crypt
Notes
- Existing users successfully authenticate against .htaccess
- No errors in testenv (available by email request)
Environment
--
JamesJanssen - 25 Oct 2004
Answer
Set an absolute path in
twiki/bin/setlib.cfg
--
PeterThoeny - 04 Dec 2004
I'm having the same problem even after setting the absolute path. The
NoPasswdUser perl module has no _htpasswdGeneratePasswd sub. I suspect the problem is that something's not pointing at
NoPasswdUser that should be.
--
LarsClausen - 11 Dec 2004
Agree with Lars, setting an absolute path did not help. Any other ideas?
--
JamesJanssen - 09 Jan 2005
In
twiki/lib/TWiki/User/NoPasswdUser.pm could you try to change this:
my $userEntry = $user.":". _htpasswdGeneratePasswd( $user, $newUserPassword , 0);
into this:
my $userEntry = $user.":" . TWiki::User::_htpasswdGeneratePasswd( $user, $newUserPassword , 0);
Please let us know if this fixes the issue.
--
PeterThoeny - 10 Jan 2005
Hi There, this didn't solve the issue. How else can we help you track this problem?
--
HoomanKatirai - 20 Jan 2005
Try setting htpasswd Format Family to 'htpasswd' rather than 'htpasswd:crypt'
--
DouglasFraser - 22 Jan 2005
I have the same problem and I didn't find out how to solve it. Did you were able to solve it?, and how?
I have tried the different posible solutions mentioned above. htpasswd Format Family is set to htpasswd.
Thanks in advance
--
TWikiGuest - 04 Mar 2005
I noticed this problem to and was able to fix it. For the upgrade, I made the changes by hand because I didn't know about the upgrade script at first. As Douglas suggested, it's a problem in the TWiki.cfg file. You need to make sure that the line: `$htpasswdFormatFamily = "htpasswd";` exists in your file. After adding it, my config worked okay again.
--
TWikiGuest - 08 Apr 2005
I have the exact same issue as the symptoms describes. However, I'm running on Windows 2003 Enterprise Server R2. I'm guessing the platform difference is why I don't seem to have a TWiki.cfg file. What would be the equivilant in my environment?
--
DarylMooi - 30 Apr 2008
So much has changed in TWiki since the original problem description that I doubt the two have anything to do with each other, Daryl. Unless you use the TWiki version from 2004.
In version 4.2.0 that we ship now there is no file called TWiki.cfg
Open a new support question and give an exact detailed description of your problem including all the error messages you see.
--
KennethLavrsen - 01 May 2008