01473: Login problem with 2.2.144

Summary: Login problem with 2.2.144
Created: 2021-11-10 13:26
Status: Closed - not a bug, resolved
Category: Bug
From: Frank
Priority: 4
Version: 2.2.144

Description: After the upgrade 2.2.144 my username/password (nine times out of ten) are not recognized (I use the basic $AuthUser['Admin'] = '...'; # password, no other recipes). The tenth time, it lets me in, but if I try to edit/preview a page it immediately logs me out. I've downgraded to 2.2.143 (just the pmwiki.php file) and everything works normally. Any idea? - Frank November 10, 2021, at 01:27 PM

Thank you for this report. Is "Admin" your username? In the quotes, is it the hashed password like '$2y$10$o60...2'? --Petko November 10, 2021, at 02:05 PM

I have tested this on 2 separate servers and it appears to work with 2.2.144.

BTW the relevant lines in config.php are:

$AuthUser['Admin'] = pmcrypt('restaurant');

$DefaultPasswords['read'] = array('id:Admin');

Obviously, the above doesn't allow me to access locked sections like SiteAdmin, but I suspect this would not be your case. To see which pages and groups are password-protected, open the page SiteAdmin.AuthList with the $DefaultPasswords['admin'] password.

There is nothing between 143 and 144 that would cause this to fail. If I were to debug it, I'd follow the instructions in the first section of PmWiki:Troubleshooting. In that same page, see also "Why is PmWiki prompting me multiple times for a password I've already entered?" and "I have to log in twice". --Petko November 10, 2021, at 03:04 PM

Solved! But for hours I couldn't figure it out: pieces of code were disappearing (I use code.visualstudio), custom functions in farmconfig.php... as if they did not exist, complete crash... in the end the problem was the space! I increase the size of the XAMPP-VM disk and everything is fine!
Sorry Petko for the "much ado about nothing" and thank you. -- Frank November 10, 2021, at 07:51 PM

Thanks for letting me know, indeed it is not often someone runs out of disk space, it wasn't even in my checklist. I'm glad it all worked out. --Petko November 10, 2021, at 07:59 PM