Form Validation is not working
-
WordPress and plugin are up to date.
I have a simple form with three fields, email, first & last name.
All three fields are set to “required” both within this plugin’s settings and also at MailChimp.
When I leave the email field blank, I get a “enter valid email” message. However, when I leave first or last name blank, I just get the generic “whoops something went wrong” message.
Why am I not getting an specific message about “required” fields left blank?
https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/
-
I enabled the plugin’s “Debug Mode” and form validation started working! I thought it was just a coincidence so I toggled it a few more times to be sure…
– When Debug mode is enabled, form validation works perfectly.
– When Debug mode is disabled, form validation is not working and I get the generic “whoops” message.
Very weird and definitely a bug, IMO.
BTW – there are no Debug Log entries in either case.
I just wanted to give the authors a chance to respond before I post a review.
Hi Sparky,
We are looking into the issue. If we are able to reproduce the bug, we will push out an update.
Thank you,
EvanAdditionally if you are gtting the ‘Whoops something went wrong‘ message, you may want to take a look at our knowledge base of articles to help resolve the issue:
https://yikesplugins.com/support/knowledge-base/whoops-something-went-wrong/
Thanks,
EvanAdditionally if you are gtting the ‘Whoops something went wrong’ message, you may want to take a look at our knowledge base of articles to help resolve the issue
That KB article simply states to turn on Debug mode. As I already stated, there are no entries in the log and the simple act of turning on Debug mode makes the “whoops” message go away and get replaced with the appropriate validation messages.
My only three fields are the default and they exactly match MailChimp…
EMAIL
,FNAME
, andLNAME
. All three are set to “required” in Easy Forms as well as on the MailChimp website.I haven’t been able to reproduce the error, especially using those three fields.
I will continue to test and see what I can come up with.
Thanks,
EvanHi Sparky,
Can you download the update and re-test the form validation. I have re-written large portions of the plugin this morning.
Thanks,
EvanCan you download the update and re-test the form validation. I have re-written large portions of the plugin this morning.
Now it’s completely broken! When clicking “submit” on a blank form, I simply get a green message that says “undefined”.
Does not matter if it’s in Debug mode or not; behavior is the same.
Debug log is empty.
When I leave first/last name blank and click submit, I get green “undefined” message and email address does not re-populate form. This has turned into a hot mess.
——–
Also getting PHP Warnings in your Form Builder section:
Warning: Illegal string offset ‘id’ in /home/****/public_html/wp-content/plugins/yikes-inc-easy-mailchimp-extender/admin/class-yikes-inc-easy-mailchimp-extender-admin.php on line 1689
Warning: Illegal string offset ‘id’ in /home/****/public_html/wp-content/plugins/yikes-inc-easy-mailchimp-extender/admin/class-yikes-inc-easy-mailchimp-extender-admin.php on line 1689
Warning: Illegal string offset ‘id’ in /home/****/public_html/wp-content/plugins/yikes-inc-easy-mailchimp-extender/admin/class-yikes-inc-easy-mailchimp-extender-admin.php on line 1689
PLEASE, roll it back!
—–
EDIT:
I rolled back to v6.0.3.9 from your GitHub page so at least I could have it working again, although Debug mode needs to be activated.
It sounds like your facing s larger issue than the form validation.
Since your now rolled back on a previous version, I can’t even take a look at your site.Form validation is firstly handled via HTML 5 required attributes. If you hit submit and the form goes through, it certainly is not the validation that’s causing issues. You should always be receiving a notice when you submit an empty form.
I’ll continue with some testing, but I have not encountered the issues you describe, and would have liked to have tested what you are describing. Unfortunately we can’t roll back at this point as the new release resolved a much larger issue some of our users were facing.
Also, since we updated the way the plugin communicates with MailChimp it may have been as simple as clearing the API cache to avoid that warning you mentioned above.
Since you don’t have it installed any longer and we can’t work together to help debug the issue, I’m going to close out this issue. If you want to install the new version and help us debug, feel free to comment here. But if you are on an older version, there is no reason for this to be open.
Thanks,
EvanIt sounds like your facing s larger issue than the form validation.
Maybe or maybe not. I would expect to be able to update the plugin without things getting worse.
Since you don’t have it installed any longer and we can’t work together to help debug the issue, I’m going to close out this issue. If you want to install the new version and help us debug, feel free to comment here.
I’m still open to working with you… I simply can not leave it broken for extended periods of time while waiting for a response here.
If you want access to the Dashboard, contact me privately, or tell me how to contact you privately, and I’ll provide credentials where you can update the plugin and see the issue for yourself. Then I/you quickly roll it back once you’re done evaluating the situation. Thanks.
UPDATE:
I tried again and cleared the MailChimp API cache. The validation is working as expected now. I tried with Debug mode on and off and behavior is the same for both cases.
Maybe you should automatically clear this cache whenever the plugin is updated?
——
The validation message for the
EMAIL
field is not very user-friendly… what is aneuid or leid key
?“The email parameter should include an email, euid, or leid key”
——
HOWEVER, the PHP warnings on your form builder page persist…
Warning: Illegal string offset ‘id’ in /home/****/public_html/wp-content/plugins/yikes-inc-easy-mailchimp-extender/admin/class-yikes-inc-easy-mailchimp-extender-admin.php on line 1689
Warning: Illegal string offset ‘id’ in /home/****/public_html/wp-content/plugins/yikes-inc-easy-mailchimp-extender/admin/class-yikes-inc-easy-mailchimp-extender-admin.php on line 1689
Warning: Illegal string offset ‘id’ in /home/****/public_html/wp-content/plugins/yikes-inc-easy-mailchimp-extender/admin/class-yikes-inc-easy-mailchimp-extender-admin.php on line 1689
- The topic ‘Form Validation is not working’ is closed to new replies.