Support

Home Forums Event Espresso Premium Error: first name is required value

Error: first name is required value

Posted: January 3, 2017 at 3:10 pm

Viewing 5 reply threads


mbanker

January 3, 2017 at 3:10 pm

I’m getting the “first name is required value” error when i try to register on my site. This just started happening and I can’t figure out why. I know that there are other topics like this, but I can’t figure out what the problem on my site is.

Here’s a link to one of my events: http://umcpi.org/events/de-escalation-strategies-for-persons-with-mental-illness-or-behavioral-disorders-in-crisis-duplicate/


Josh

  • Support Staff

January 3, 2017 at 3:38 pm

Hi there,

The breakage is being caused by some invalid code in one of the minified JavaScript files loading on that page:

https://www.evernote.com/shard/s4/sh/dc34a6c8-82b3-4421-a725-edbdf492512c/a4fc62390e2a927c977d145e9cf10952

It will be possible to pinpoint the exact file, or wherever else that code is coming from, if you can disable the WP hummingbird caching.


mbanker

January 3, 2017 at 3:42 pm

I’ve turned off Hummingbird’s minification, it doesn’t actually cache pages itself.


Josh

  • Support Staff

January 3, 2017 at 3:46 pm

And with that, your form is working now.


mbanker

January 3, 2017 at 3:59 pm

Yes, but I would like to be able to Minify my code for page speed optimization. Didn’t you say if I deactivated Hummingbird we would be able to figure out which script was causing the problem?


Josh

  • Support Staff

January 4, 2017 at 8:55 am

Yes I did and it turned out one of the problems is the script that was output by the Hummingbird plugin’s minify feature. You can try another plugin like wp-minify or contact Hummingbird support for support.

With Hummingbird deactivated, I can see some additional issues, which don’t seem to cause any problems, but they could be addressed.

Issue 2: Two copies of the jQuery library are loaded. There should only be one copy. Not only will having one help with performance, it will also avoid script conflicts. So there’s this one:
https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js”
and this one:
http://umcpi.org/wp-includes/js/jquery/jquery.js’

Recommendation: Use the bundled WP version of jQuery only, no need to load in the other one from Google’s CDN.

Issue 3: This inline script that’s place in the head of the document:

The script was actually near the JS error earlier when the Hummingbird plugin was activated, and it may help to move the script to the footer.
Recommendation: Move the script to the footer of the document, and the script should pass in jQuery to be mapped to $. See also:
https://digwp.com/2011/09/using-instead-of-jquery-in-wordpress/

Viewing 5 reply threads

The support post ‘Error: first name is required value’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso