[ZendTo] 500 internal server error on user unlock

Jules Jules at Zend.To
Thu Oct 8 16:26:58 BST 2020


Hi Massimo,

Many thanks for reporting that. I missed one :-(

If you want to fix it yourself, it's very simple.
Edit /opt/zendto/www/unlock.php.
At line 78 you should see the line
         $theDropbox->authenticator()->validUsername($user, $props, 
$errormsg);
Replace that 1 line with these 2:
         $errormsg = '';
$theDropbox->authenticator()->validUsername($user, $props, $errormsg);
and refresh the page in your web browser.
That should fix it.

Otherwise, the fix will be in the next beta.

As an alternative to the "unlock" page, there is a very simple 
"unlockuser" command in /opt/zendto/bin that you can run by hand on the 
command-line. Mostly you just want to do
     /opt/zendto/bin/unlockuser -a
to unlock all locked users.
Run it without the "-a" to see the usage.

Cheers,
Jules.


On 08/10/2020 15:48, Massimo Forni via ZendTo wrote:
>
> Hi Jules,
>
> With the latest version whenever I try to open the unlock user page I 
> get a 500 error.
>
> I think I saw a similar post in the previous weeks
>
> PHP Fatal error:Uncaught ArgumentCountError: Too few arguments to 
> function NSSADAuthenticator::validUsername(), 2 passed in 
> /opt/zendto/www/unlock.php on line 78 and exactly 3 expected in 
> /opt/zendto/lib/NSSADAuthenticator.php:188\nStack trace:\n#0 
> /opt/zendto/www/unlock.php(78): 
> NSSADAuthenticator->validUsername('my.username...', Array)\n#1 
> {main}\nthrown in /opt/zendto/lib/NSSADAuthenticator.php on line 188
>
> Thank you
>
> Best regards
>
> --
>
> *Massimo Forni*
> ICT Infrastructure Manager
>
> Mobile: +393474110278
>
> ------------------------------------------------------------------------
>
> *Turboden S.p.A.* *I* via Cernaia 10 *I* 25124 Brescia *I* Italy
> t. +39 030 3552001 *I* f. +39 030 3552011
> www.turboden.com <http://www.turboden.com>
>
>
> *Confidentiality notice*: this message, together with its attachments, 
> may contain strictly confidential and/or legally privileged 
> information and it is destined solely to the intended addressee(s), 
> who only may use it under his/their responsibility. Opinions, 
> conclusions and other information contained in this message, that do 
> not relate to the official business of this firm, shall be considered 
> as not given or endorsed by it. If you have received this 
> communication in error, please notify us immediately by responding to 
> this email and then delete it from your system. Any use, disclosure, 
> copying or distribution of the contents of this communication by a 
> not-intended recipient or in violation of the purposes of this 
> communication is strictly prohibited and may be unlawful.
>
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://jul.es/mailman/listinfo/zendto

Jules

-- 
Julian Field MEng CEng CITP MBCS MIEEE MACM


www.Zend.To
Twitter: @JulesFM

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jul.es/pipermail/zendto/attachments/20201008/83b14477/attachment-0001.html>


More information about the ZendTo mailing list