The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
Required fields login.php - 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: Required fields login.php (/showthread.php?tid=950)



Required fields login.php - shoropio - 02-13-2018

Hello everyone, in login.php the user and password fields are required, which means that you do not send the form with the empty fields and it works fine. the problem is with recaptcha.... always send the form returning this error

<pre>
Code:
Notice: Array to string conversion in C:\xampp\htdocs\users\login.php on line 119

Notice: Array to string conversion in C:\xampp\htdocs\users\login.php on line 119
Array
Array
</pre>



Thoughts


Required fields login.php - Brandin - 02-14-2018

Have you modified your login page at all? What US version?


Required fields login.php - shoropio - 02-16-2018

Hello @Brandin. I have not edited it, and I use the latest version. to hit the error you must activate recaptcha and send the empty fields of username and password in login.php...


Required fields login.php - Brandin - 02-16-2018

Great, thanks for giving the details on reproducing. We'll look into this.


Required fields login.php - Brandin - 02-17-2018

So it looks like it actually has nothing to do with Recapatcha, but rather an invalid call to the Error Messages when you submit the form with empty fields. The fields use Bootstraps JS "required" attribute so you shouldn't be able to submit, but of course, if JS is disabled or blocked, it won't work. Then it hits validation, and validation produced an error messages that you couldn't make sense of. I patched this in 4.3.14.