The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
errors on login error messages - 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: errors on login error messages (/showthread.php?tid=99) |
errors on login error messages - john - 03-12-2016 I accidentally clicked login with blank username and password and noticed error messages were returned with just the word 'Array'. In login.php, seems like the $error_message when validation failed should be using $validation->display_errors() instead of parsing and compiling the message. errors on login error messages - mudmin - 03-14-2016 Sorry for the delay in responding to this. I will check that out. We are in the process of writing a 4.1 release and I will get that on in the bugfix spreadsheet. Thanks for taking the time to report this. errors on login error messages - tomdickson - 03-18-2016 Hi, A similar bug is revealed if you enter a username but NO password. You get a 'string' to 'array' conversion error. Cheers T. errors on login error messages - mudmin - 03-18-2016 Thank you! I know what I need to do to fix that. I appreciate you letting me know. Sometimes we get so involved building all the big features that it's easy to miss things like that! errors on login error messages - tomdickson - 04-02-2016 Hi there, Checked out the new 'e' update. Thanks for the update. On line 71 there is an array to string conversion. Need to replace $error with $error[0]. Cheers Tom errors on login error messages - mudmin - 04-02-2016 Ahh. Thanks. That didn't happen on my system. I actually upgraded the validation class on my test system to allow it to handle arrays for my error reporting. I'm going to take another crack at that on Monday. Basically the new validation error display will allow me to use strings, arrays, or even pop custom error messages in there from the code itself. Hopefully that will fix all of these issues. |