XF 2.1 Please enter a valid value

GamerMob

Active member
Hope someone can help here. I went to edit the Admin group for my site today and when I hit Save it came up with a message, "Please enter a valid value."

The field it seems to be triggered on is the User banner text

l8qsWWp.png


Now it seems to take it if the field is no more than 4 characters as shown below.

Note: I tried manually changing it in the database and it doesn't reflect the changes to the banner.


To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

Any help would be appreciated.
 
The max length for that field is 100 characters, maybe an add-on you have installed is causing the issue? Try disabling add-ons.
I tried with all add-ons disabled and it still happens.

I have another group for moderators and it doesn't happen when I save it with the already applied banner text but if I make an edit to it, it does the same thing.

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
Can you run this query in phpMyadmin:
SQL:
show create table xf_user_group


Then select full texts and paste the output.
It should look like this:
SQL:
CREATE TABLE `xf_user_group` (
 `user_group_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
 `title` varchar(50) NOT NULL,
 `display_style_priority` int(10) unsigned NOT NULL DEFAULT 0,
 `username_css` text NOT NULL,
 `user_title` varchar(100) NOT NULL DEFAULT '',
 `banner_css_class` varchar(75) NOT NULL DEFAULT '',
 `banner_text` varchar(100) NOT NULL DEFAULT '',
 PRIMARY KEY (`user_group_id`),
 KEY `title` (`title`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4
 
Can you run this query in phpMyadmin:
SQL:
show create table xf_user_group


Then select full texts and paste the output.
It should look like this:
SQL:
CREATE TABLE `xf_user_group` (
`user_group_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(50) NOT NULL,
`display_style_priority` int(10) unsigned NOT NULL DEFAULT 0,
`username_css` text NOT NULL,
`user_title` varchar(100) NOT NULL DEFAULT '',
`banner_css_class` varchar(75) NOT NULL DEFAULT '',
`banner_text` varchar(100) NOT NULL DEFAULT '',
PRIMARY KEY (`user_group_id`),
KEY `title` (`title`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4
It won't let me paste anything

gIRVGQB.png
 
Which add-ons do you have installed?

Are there any template modifications being applied to the user_group_edit admin template?
AttachmentRequired
Global Name Styling
Lazy Load Images
Account Wrapper - Font Awesome
Member View - Font Awesome
User Criteria Extended
User Improvements
Core
Amazon S3 for XenForo
Attachment Improvements
Gift Upgrades
Live forum statistics
Report Reasons
Warning Improvements
Standard Library

No edits to the user_group_edit template... Oddly I upgraded my test site installation to 2.2.0 Beta 6 and it works fine.
 
Odd. I don't think I've ever seen anything like that before.

Is the test installation on a different server then?
It is the same server. This issue was bizarre... So the initial error message resolved after upgraded the test install to 2.2 Beta 6, but the uploading of XML files was not fixed by upgrading.
 
It has to have been some sort of corrupt cache for that site only - it can't have been a general Apache issue otherwise it would have affected the other site the same way.

Oh well, at least it's resolved.
 
Back
Top Bottom