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

XF 2.0 Cannot edit user after upgrade

Mr Lucky

Well-known member
#1
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
#2
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
#3
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
#5
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
#7
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.)