• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Registration Error Msgs on New Page

Mr_Bob

Well-known member
#1
I just noticed this on my own board and tested it on xenforo.com. When errors are encountered during the registration process, the registration form does not reload and rather the user is directed to a new page without the registration form. Maybe this is as designed? But, it seems out of the ordinary, so just in case...

To reproduce: (XF 1.1.4)
  • Use an illegal username (like admin)
  • Do not fill out any other field, except for the verification question and terms agreement.
  • Click Register
 

Attachments

Mike

XenForo developer
Staff member
#4
Somehow I managed to wipe this line out...

In library/XenForo/ControllerPublic/Register.php, find:

Code:
if ($errors)
Add this above it:

Code:
$errors = array_merge($errors, $writer->getErrors());