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

erich37

Well-known member
are you using the latest XF-version ?

The registration-form is actually reloading fine on XF-version 1.1.1
 

Mike

XenForo developer
Staff member
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());
 

Biker

Well-known member
Have you added this to the existing zip file, or should we go ahead and make the change pending the next release?
 
Top