Support

Home Forums Event Espresso Premium First Name is a required value error

First Name is a required value error

Posted: June 29, 2016 at 4:47 pm

Viewing 6 reply threads


thestarlightproject

June 29, 2016 at 4:47 pm

Original post: https://eventespresso.com/topic/ee4-an-error-occurred-first-name-is-a-required-value-2/

I have a registration form here at http://www.thestarlightproject.com/events/golf-event-2016/ and it keeps displaying the error “First Name is a required value” when you attempt to register. I’ve tried updating my theme, updating all other plugins and making sure WordPress is up-to-date.

Could you take a look and let me know what would be causing this error?


Josh

  • Support Staff

June 29, 2016 at 5:11 pm

The error is caused by your WordPress theme using a very old version of the jQuery JavaScript library.

https://www.evernote.com/shard/s4/sh/0122b873-d4a9-493d-8b1e-e0b577034a72/c9daa0c3f06e24907a98082e4298777a

As you can see from the screenshot, it’s using version 1.6.4. The version of jQuery that’s bundled with WordPress is v1.12.4.

The way to fix this is remove the code in the theme that’s loading in the old version of jQuery and preventing the WordPress bundled version to be loaded. Once that’s removed, WordPress will automatically load in its bundled version of jQuery.


thestarlightproject

June 30, 2016 at 9:41 am

Hi Josh,

I believe I’ve updated jQuery to version 3.0.0 and I’m still receiving the same error on the site.


Tony

  • Support Staff

June 30, 2016 at 9:58 am

There’s now multiple JS errors being thrown on the page – http://take.ms/RjgRG

The theme is using multiple libraries that may not be ready for v3 and any JS errors can cause problems with the validation on the registration form as it is JavaScript based.

I would recommend removing the custom version of jQuery and just enqueue the default version that is shipped with WordPress and use that as Josh mentioned above.


Josh

  • Support Staff

June 30, 2016 at 10:40 am

You’ll need to use the version of jQuery that’s bundled with WordPress, and update any of the theme’s scripts if they’re not compatible with the bundled version of jQuery.


thestarlightproject

June 30, 2016 at 10:40 am

Thanks for the quick reply! I loaded the version bundled with WordPress and it’s working fine.


Tony

  • Support Staff

June 30, 2016 at 10:46 am

Great, I’m glad its working.

Viewing 6 reply threads

The support post ‘First Name is a required value error’ 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