The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
4.3.8 login.php error (and fix) - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26) +--- Thread: 4.3.8 login.php error (and fix) (/showthread.php?tid=861) |
4.3.8 login.php error (and fix) - stowe39 - 11-30-2017 after upgrading to 4.3.8 to fix the notifications issue, the login page didn't work anymore and an error was displayed that said Code: Notice: Undefined property: stdClass::$twofa in C:\wamp\www\test\users\login.php on line 169 I had a look at line 169 and it was looking for the variable twofa in the settings table. I added a column for twofa (tinyint) to the settings table and the login works again. and I know I needed to run users/update.php to fix the problem...but I couldn't run the file without being logged in 4.3.8 login.php error (and fix) - dan - 11-30-2017 Did you update from another version? The instructions said to make sure you ran the update. PHP file to get the latest database patches. If you installed this as a full version let me know and we will figure that out 4.3.8 login.php error (and fix) - stowe39 - 11-30-2017 It was an update from version 4.3.6, and before I had the chance to run the update.php file, it logged me out and I couldn't log back in.....and users/update.php was set to private, so I couldn't run it when I wasn't logged in. After extra column to the settings table, I was able to login and run the update.php and its all good now. 4.3.8 login.php error (and fix) - mudmin - 11-30-2017 Ohhhhhhhhhhhhh. That is fantastic information. Thank you so much. Hmm. It's really rare that we break the login form, but I need to think of a way to deal with that on updates. Thanks so much for taking the time to share. |