XF 2.0 Cannot edit user after upgrade

Mr Lucky

Well-known member
I just did an upgrade (test site copy of xf1 live forum) and now cannot edit any user. I just get an error overlay telling me "Please enter a value that matches the required format."

The same users are editabe in the live forum, all that changed is the upgrade and new style. Checked with all custom user fields made not rewuired and with addons disabled.
 

Chris D

XenForo developer
Staff member
Which custom fields do you have?

Which ones have a "value match requirement" set up, and what is the requirement?
 

Mr Lucky

Well-known member
Ok sorted.

It was Country of Residence which had this regex (to catch spamers) that no longer works

Code:
^(?!www$)(?!http$)(?!https$)[a-z0-9]+$
 

Mike

XenForo developer
Staff member
Was that field empty for the users? We have systems for admins to bypass when a field is required, but that regex is effectively requiring a value to be entered. Assuming the field is set as required, you can likely change the "+" near the end to "*".
 

Mike

XenForo developer
Staff member
Right -- setting the field as required and changing the regex as I mentioned should prevent the error from happening when you edit the users.

(Independent of anything about making the error more useful.)
 

Mr Lucky

Well-known member
Right -- setting the field as required and changing the regex as I mentioned should prevent the error from happening when you edit the users.

(Independent of anything about making the error more useful.)
Same thing.
FirefoxScreenshot049.png

FirefoxScreenshot050.png
 

Mr Lucky

Well-known member
I think I have solved it anyway by using 0-9 A-Z and _

That should stop people putting in a URL
 

vsellis

New member
In case it helps anyone I just ran across this too.

The regex for the "Are you human" question was

^yes|YES$

I was entering "Yes"

so updated to :

^yes|YES|Yes$

and everything worked.

Found under: Users > Custom User Fields > Human Verification Question > Options for Text Fields
 
Top