Fixed Registration Error Msgs on New Page

Mr_Bob

Well-known member
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

  • screenshot-xfsite.webp
    screenshot-xfsite.webp
    29 KB · Views: 47
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());
 
Top Bottom