Home › Toolset Professional Support › [Resolved] Validation error messages displaying redundant information
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
Tagged: Toolset Forms
This topic contains 7 replies, has 3 voices.
Last updated by Nigel 6 years, 12 months ago.
Assisted by: Nigel.
Hi there,
I'm using the CRED plugin to have users create accounts and edit their profiles, and I've noticed that the error messages that appear above the form field are redundant and don't read well. They repeat the name of the label for the input and then display the error message, forming a grammatically incorrect and confusing sentence.
For example, if there was an error for a user's email, the error message appears as "Email Please enter a valid email address." Is there anyway to just have "Please enter a valid email address?" Why does it have the name of the label for the input in the error message?
Go to the following URL, confirm you aren't a robot, and then try submitting the form blank to see the error messages I'm referring to: hidden link
Hello. Thank you for contacting the Toolset support.
Well - I do not able to see the CRED form, may be it require login to see the form. Could you please send me login details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
Hi there,
Thanks for your response. I noticed that the page was marked as a draft, that's why you couldn't see it. I've changed the status, please try following instructions again. If that doesn't work, I'll give you access.
Thanks, I can see the form now.
I've confirm "you aren't a robot", and then try submitting the form blank but I do not see error message with field name and associated error message.
I see this, please check screenshot:
=> hidden link
am I missing any step here?
Thanks for getting back to me. Actually, the original problem has went away for some reason, but a different one now appears.
The validation error that appears at the top of the form says "This user was not created for the following 7 reasons:", but doesn't actually display a list of the problems. Also, when you click on it, it just disappears completely. Any fix for these things? See attached images.
Thanks!
Actually, the original problem has went away for some reason, but a different one now appears.
=> This is strange.
1)
Could you please send me debug information that will help us to investigate your issue.
=> https://toolset.com/faq/provide-debug-information-faster-support/
2)
Could you please send me code of your CRED form, I need to check how it is composed.
Debug:
{"core":{"Wordpress":{"Multisite":"No","SiteURL":"https:\/\/bicycle-kick.org","HomeURL":"http:\/\/bicycle-kick.org","Version":"4.8.4","PermalinkStructure":"\/%postname%\/","PostTypes":"post, page, attachment, revision, nav_menu_item, custom_css, customize_changeset, wp-types-group, wp-types-user-group, wp-types-term-group, layout, project, cred-form, cred-user-form, view, view-template","PostSatus":"publish, future, draft, pending, private, trash, auto-draft, inherit"},"Server":{"jQueryVersion":"1.12.4","PHPVersion":"5.6.31-4+wpengine10","MySQLVersion":"5.6.37","ServerSoftware":"Apache"},"PHP":{"MemoryLimit":"512M","UploadMax":"50M","PostMax":"256M","TimeLimit":"60","MaxInputVars":"5000"}},"plugins":{"active_plugins":{"better-search-replace\/better-search-replace.php":{"Name":"Better Search Replace","PluginURI":"https:\/\/bettersearchreplace.com","Version":"1.3.1","Author":"Delicious Brains","AuthorURI":"https:\/\/bettersearchreplace.com","TextDomain":"better-search-replace","DomainPath":"\/languages","Network":true,"Title":"Better Search Replace","AuthorName":"Delicious Brains"},"cred-frontend-editor\/plugin.php":{"Name":"Toolset CRED","PluginURI":"https:\/\/toolset.com\/home\/toolset-components\/#cred","Version":"1.9.3.1","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"cred-frontend-editor","DomainPath":"","Network":false,"Title":"Toolset CRED","AuthorName":"OnTheGoSystems"},"divi-builder\/divi-builder.php":{"Name":"Divi Builder","PluginURI":"http:\/\/elegantthemes.com","Version":"2.0.52","Author":"Elegant Themes","AuthorURI":"http:\/\/elegantthemes.com","TextDomain":"divi-builder","DomainPath":"","Network":false,"Title":"Divi Builder","AuthorName":"Elegant Themes"},"nav-menu-roles\/nav-menu-roles.php":{"Name":"Nav Menu Roles","PluginURI":"http:\/\/www.kathyisawesome.com\/449\/nav-menu-roles\/","Version":"1.9.1","Author":"Kathy Darling","AuthorURI":"http:\/\/www.kathyisawesome.com","TextDomain":"nav-menu-roles","DomainPath":"","Network":false,"Title":"Nav Menu Roles","AuthorName":"Kathy Darling"},"redeem-rewards\/rewards-plugin.php":{"Name":"Rewards System","PluginURI":"","Version":"1.0","Author":"Tom Tillistrand","AuthorURI":"","TextDomain":"redeem-rewards","DomainPath":"","Network":false,"Title":"Rewards System","AuthorName":"Tom Tillistrand"},"resize-image-after-upload\/resize-image-after-upload.php":{"Name":"Resize Image After Upload","PluginURI":"https:\/\/wordpress.org\/plugins\/resize-image-after-upload\/","Version":"1.8.1","Author":"ShortPixel","AuthorURI":"https:\/\/shortpixel.com","TextDomain":"resize-image-after-upload","DomainPath":"","Network":false,"Title":"Resize Image After Upload","AuthorName":"ShortPixel"},"social-warfare\/social-warfare.php":{"Name":"Social Warfare","PluginURI":"http:\/\/warfareplugins.com","Version":"2.3.3","Author":"Warfare Plugins","AuthorURI":"http:\/\/warfareplugins.com","TextDomain":"social-warfare","DomainPath":"","Network":false,"Title":"Social Warfare","AuthorName":"Warfare Plugins"},"types-access\/types-access.php":{"Name":"Toolset Access","PluginURI":"https:\/\/toolset.com\/home\/types-access\/?utm_source=accessplugin\u0026utm_campaign=access\u0026utm_medium=release-notes-plugins-list\u0026utm_term=Visit plugin site","Version":"2.4.3.2","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"types-access","DomainPath":"","Network":false,"Title":"Toolset Access","AuthorName":"OnTheGoSystems"},"types\/wpcf.php":{"Name":"Toolset Types","PluginURI":"http:\/\/wordpress.org\/extend\/plugins\/types\/","Version":"2.2.20","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com","TextDomain":"types","DomainPath":"","Network":false,"Title":"Toolset Types","AuthorName":"OnTheGoSystems"},"wonderm00ns-simple-facebook-open-graph-tags\/wonderm00n-open-graph.php":{"Name":"Facebook Open Graph, Google+ and Twitter Card Tags","PluginURI":"https:\/\/www.webdados.pt\/produtos-e-servicos\/internet\/desenvolvimento-wordpress\/facebook-open-graph-meta-tags-wordpress\/","Version":"2.1.5","Author":"Webdados","AuthorURI":"https:\/\/www.webdados.pt","TextDomain":"wonderm00ns-simple-facebook-open-graph-tags","DomainPath":"\/lang","Network":false,"Title":"Facebook Open Graph, Google+ and Twitter Card Tags","AuthorName":"Webdados"},"wp-views\/wp-views.php":{"Name":"Toolset Views","PluginURI":"https:\/\/toolset.com\/?utm_source=viewsplugin\u0026utm_campaign=views\u0026utm_medium=plugins-list-full-version\u0026utm_term=Visit plugin site","Version":"2.5.1","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com","TextDomain":"wp-views","DomainPath":"","Network":false,"Title":"Toolset Views","AuthorName":"OnTheGoSystems"}},"mu_plugins":{"slt-force-strong-passwords.php":{"Name":"Force Strong Passwords - WPE Edition","PluginURI":"https:\/\/github.com\/boogah\/Force-Strong-Passwords","Version":"1.6.4","Description":"Forces users to set either a strong or medium strength password.","Author":"Jason Cosper","AuthorURI":"http:\/\/jasoncosper.com","TextDomain":"","DomainPath":"","Network":false,"Title":"Force Strong Passwords - WPE Edition","AuthorName":"Jason Cosper"},"stop-long-comments.php":{"Name":"Stop long comments","PluginURI":"","Version":"0.0.4","Description":"A security precaution to stop comments that are too long.","Author":"WPEngine","AuthorURI":"wpengine.com","TextDomain":"","DomainPath":"","Network":false,"Title":"Stop long comments","AuthorName":"WPEngine"},"mu-plugin.php":{"Name":"WP Engine System","PluginURI":"http:\/\/wpengine.com\/plugins","Version":"3.2.1","Description":"WP Engine-specific services and options","Author":"WP Engine","AuthorURI":"","TextDomain":"","DomainPath":"","Network":false,"Title":"WP Engine System","AuthorName":"WP Engine"}},"dropins":{"advanced-cache.php":{"Name":"advanced-cache.php","PluginURI":"","Version":"","Description":"","Author":"","AuthorURI":"","TextDomain":"","DomainPath":"","Network":false,"Title":"","AuthorName":""},"object-cache.php":{"Name":"Memcached Redux","PluginURI":"http:\/\/wordpress.org\/extend\/plugins\/memcached\/","Version":"0.1.3","Description":"The real Memcached (not Memcache) backend for the WP Object Cache.","Author":"Scott Taylor - uses code from Ryan Boren, Denis de Bernardy, Matt Martz, Mike Schroder","AuthorURI":"","TextDomain":"","DomainPath":"","Network":false,"Title":"Memcached Redux","AuthorName":"Scott Taylor - uses code from Ryan Boren, Denis de Bernardy, Matt Martz, Mike Schroder"}}},"theme":{"Name":"Extra Child Theme","ThemeURI":null,"Author":"\u003Ca href=\u0022http:\/\/elegantthemes.com\u0022\u003EElegant Themes\u003C\/a\u003E","AuthorURI":null,"Template":"Extra","Version":"1.0.0","TextDomain":null,"DomainPath":null},"extra-debug":{"access":{"rules":{"types":{"edit_page":{"roles":["editor","shop_manager","author","contributor"],"users":[],"types":{"page":1}},"read_page":{"roles":["editor","shop_manager","author","contributor","customer","subscriber","guest"],"users":[],"types":{"page":1}},"delete_page":{"roles":["editor","shop_manager","author","contributor"],"users":[],"types":{"page":1}},"edit_pages":{"roles":["editor","shop_manager","author","contributor"],"users":[],"types":{"page":1}},"edit_others_pages":{"roles":["editor","shop_manager"],"users":[],"types":{"page":1}},"publish_pages":{"roles":["editor","shop_manager","author"],"users":[],"types":{"page":1}},"read_private_pages":{"roles":["editor","shop_manager","author","contributor"],"users":[],"types":{"page":1}},"delete_pages":{"roles":["editor","shop_manager","author","contributor"],"users":[],"types":{"page":1}},"delete_private_pages":{"roles":["editor","shop_manager","author","contributor"],"users":[],"types":{"page":1}},"delete_published_pages":{"roles":["editor","shop_manager","author"],"users":[],"types":{"page":1}},"delete_others_pages":{"roles":["editor","shop_manager"],"users":[],"types":{"page":1}},"edit_private_pages":{"roles":["editor","shop_manager"],"users":[],"types":{"page":1}},"edit_published_pages":{"roles":["editor","shop_manager","author"],"users":[],"types":{"page":1}}},"taxonomies":[]},"debug":[],"settings":{"types":{"_custom_read_errors":{"wpcf-custom-group-my-account":{"permissions":{"read":{"everyone":"error_php","editor":"","shop_manager":"","author":"","contributor":"","customer":"","subscriber":"","guest":""}}},"page":{"permissions":{"read":{"everyone":"","editor":"","shop_manager":"","author":"","contributor":"","customer":"","subscriber":"","guest":""}}}},"_custom_read_errors_value":{"wpcf-custom-group-my-account":{"permissions":{"read":{"everyone":"My Account","editor":"","shop_manager":"","author":"","contributor":"","customer":"","subscriber":"","guest":""}}},"page":{"permissions":{"read":{"everyone":"","editor":"","shop_manager":"","author":"","contributor":"","customer":"","subscriber":"","guest":""}}}},"page":{"mode":"permissions","permissions":{"publish":{"roles":["editor","shop_manager","author"]},"delete_any":{"roles":["editor","shop_manager"]},"edit_any":{"roles":["editor","shop_manager"]},"delete_own":{"roles":["editor","shop_manager","author","contributor"]},"edit_own":{"roles":["editor","shop_manager","author","contributor"]},"read":{"roles":["editor","shop_manager","author","contributor","customer","subscriber","guest"]}}}},"third_party":{"__CRED_CRED":{"__CRED_CRED_GROUP":{"permissions":{"delete_other_posts_with_cred":{"roles":["administrator","editor","shop_manager","author","contributor","customer","subscriber","guest"]},"delete_own_posts_with_cred":{"roles":["administrator","editor","shop_manager","author","contributor","customer","subscriber","guest"]},"create_posts_with_cred_953":{"roles":["administrator","editor","shop_manager","author","contributor","customer","subscriber","guest"]},"create_posts_with_cred_910":{"roles":["administrator","editor","shop_manager","author","contributor","customer","subscriber","guest"]},"create_posts_with_cred_1035":{"roles":["administrator","editor","shop_manager","author","contributor"]},"create_posts_with_cred_1026":{"roles":["administrator","editor","shop_manager","author","contributor"]},"create_posts_with_cred_1358":{"roles":["administrator","editor","shop_manager","author","contributor"]},"create_posts_with_cred_308":{"roles":["administrator","editor","shop_manager","author","contributor","customer","subscriber","guest"]}},"mode":"permissions"}},"__CRED_CRED_USER":{"__CRED_CRED_USER_GROUP":{"permissions":{"create_users_with_cred_1112":{"roles":["administrator","editor","shop_manager","author","contributor","customer","subscriber","guest"]},"create_users_with_cred_1746":{"roles":["administrator","editor","shop_manager","author","contributor","customer","subscriber","guest"]},"edit_other_users_with_cred_1707":{"roles":["administrator"]},"edit_own_user_with_cred_1707":{"roles":["administrator","contributor"]}},"mode":"permissions"}}},"tax":[]},"errors":[]},"types":{"add_resized_images_to_library":0,"register_translations_on_import":1,"images_remote":0,"images_remote_cache_time":"36","help_box":"by_types","hide_standard_custom_fields_metabox":"show","postmeta_unfiltered_html":"on","usermeta_unfiltered_html":"on"},"CRED":{"wizard":1,"syntax_highlight":1,"cache_notice":1,"export_settings":1,"export_custom_fields":1,"dont_load_cred_css":0,"use_bootstrap":0,"autogeneration_email":{"subject":"Welcome new user","body":"[username]Your username is: %cuf_username%[\/username]\\n[nickname]Your nickname is: %cuf_nickname%[\/nickname]\\n[password]Your password is: %cuf_password%[\/password]"},"enable_post_expiration":0},"views":{"views_template_loop_blog":0,"wpv_bootstrap_version":1,"wpv_custom_conditional_functions":[],"wpv_custom_inner_shortcodes":[],"wpv_debug_mode":"","wpv_debug_mode_type":"compact","wpv_map_plugin":0,"wpv_show_edit_view_link":1,"wpv_show_hidden_fields":"","wpv_saved_auto_detected_framework":"","wpv_codemirror_autoresize":"","wpv_enable_pagination_manage_history":true,"wpv_enable_parametric_search_manage_history":true,"view_home-blog-page":811}}}
Cred Form:
[creduserform class='cred-user-form cred-keep-original'] [cred_field field='form_messages' value='' class='alert alert-warning'] <fieldset> <legend class="first-legend">General Information</legend> <div class="form-group field-limit-width-300"> <label>First Name [cred_field field='first_name' post='user' value='' urlparam='' class='form-control' output='bootstrap'] </label> </div> <div class="form-group field-limit-width-300"> <label>Last Name [cred_field field='last_name' post='user' value='' urlparam='' class='form-control' output='bootstrap'] </label> </div> <div class="form-group field-limit-width-50"> <label>Age [cred_field field='age' post='user' value='' urlparam='' class='form-control' output='bootstrap'] </label> </div> <div class="form-group field-limit-width-300"> <label>Country [cred_field field='country' post='user' value='' urlparam='' class='form-control' output='bootstrap'] </label> </div> <div class="form-group"> <label>Profile Image</label> [cred_field field='profile-image' post='user' value='' urlparam='' output='bootstrap'] </div> </fieldset> <fieldset> <legend>Login Information</legend> <div class="form-group field-limit-width-300"> <label>Username [cred_field field='user_login' post='user' value='' urlparam='' class='form-control' output='bootstrap'] </label> </div> <div class="form-group field-limit-width-300"> <label>Email [cred_field field='user_email' post='user' value='' urlparam='' class='form-control' output='bootstrap'] </label> </div> <div class="form-group"> <label>Password [cred_field field='user_pass' post='user' value='' urlparam='' class='form-control' output='bootstrap'] </label> </div> <div class="form-group"> <label>Confirm Password [cred_field field='user_pass2' post='user' value='' urlparam='' class='form-control' output='bootstrap'] </label> </div> </fieldset> <fieldset> <legend>Soccer Profile</legend> <div class="form-group field-limit-width-300"> <label>Favorite Soccer Shoes [cred_field field='favorite-soccer-shoes' post='user' value='' urlparam='' class='form-control' output='bootstrap'] </label> </div> <div class="form-group field-limit-width-300"> <label>Favorite Soccer Position [cred_field field='favorite-position' post='user' value='' urlparam='' class='form-control' output='bootstrap'] </label> </div> <div class="form-group field-limit-width-300"> <label>Favorite Type of Goal [cred_field field='favorite-type-of-goal' post='user' value='' urlparam='' class='form-control' output='bootstrap'] </label> </div> <div class="form-group field-limit-width-300"> <label>Favorite Jersey Number [cred_field field='favorite-jersey-number' post='user' value='' urlparam='' class='form-control' output='bootstrap'] </label> </div> <div class="form-group field-limit-width-300"> <label>Favorite Team</label> [cred_field field='favorite-team' post='user' value='' urlparam='' class='form-control' output='bootstrap'] </div> <div class="form-group field-limit-width-300"> <label>Favorite Player</label> [cred_field field='favorite-player' post='user' value='' urlparam='' class='form-control' output='bootstrap'] </div> </fieldset> <div class="form-group recaptcha-field">[cred_field field='recaptcha' value='' urlparam='' class='form-control' output='bootstrap']</div> [cred_field field='form_submit' value='Submit' urlparam='' class='btn btn-primary btn-lg' output='bootstrap'] [/creduserform]
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Hi Tom
Minesh is on vacation so let me take over here.
What you are seeing is the expected behaviour I'm afraid.
There is an internal ticket to review this and to provide more control for users over where error messages appear to achieve consistency between server side and client side validation messages, but it is not being actively worked on right now, it is in the queue.
So I don't really have anything to offer you I'm afraid, except to ask you for your feedback about what you would like to see with the validation messages, which I will then add to that internal ticket.