Support

Home Forums Event Espresso Premium Event Registration Form Keeps Resetting

Event Registration Form Keeps Resetting

Posted: June 16, 2016 at 4:50 pm


Odin

June 16, 2016 at 4:50 pm

Hello,

I am running EE4 and am experiencing an issue when trying to purchase an event ticket. I see the event correctly and I am able to select the number of tickets desired and then I am taken to the registration form. I complete the information on the form and then click the button to proceed to the payment options however, when I click on the payment option button the registration form clears and I receive an error message stating that the first name field is required. This field had information in it when I clicked the button.

Any help is appreciated as this is keeping me from utilizing this software…

Thanks,

Dale


Odin

June 16, 2016 at 6:31 pm

I just read your post about the errors I am experiencing. I just installed WordPress and your plug-ins today so my apologies for not catching your post first.

I followed the advice on your post and I am still unable to see the calendar and my registration forms still reset and state that i need to provide a first name. Everything is up to date however, I am not sure about the theme I am using. It is a custom theme from our corporate headquarters and they rarely update it. Can you please visit our site and see if you can determine the cause?

site is: http://cobra.odindefensetraining.com

Thanks,

Dale


Tony

  • Support Staff

June 17, 2016 at 4:33 am

Hi Dale,

Looking over your site there is a JS error thrown on every page – http://take.ms/tXNe9

Uncaught TypeError: Cannot read property 'debugLog' of undefined

The Calendar and Registration forms both use JavaScript so if there are JS errors being thrown it can cause problems with both.

If you look within the themes functions.php file you should find where the jquery.jCounter-0.1.4.js file is being en-queued, try temporarily commenting out the call to enqueue the file and check if the Calendar and Registration Form then work as expected.

The other option to test this is either switching to one of the default themes (or just preview it within the admin) and retest the pages to see if they work then.


Odin

June 17, 2016 at 12:00 pm

I reinstalled my WordPress and used version 4.4.3 and the problem still occurs. I thought this was just a problem in 4.5?

I am able to get the script to work using the wordpress default theme but that does me no good and disabling the jquery in the theme breaks everything…


Tony

  • Support Staff

June 17, 2016 at 12:21 pm

I thought this was just a problem in 4.5?

The problem in 4.5 is that WP updated the version of jQuery that was shipped within core. Previous versions of jQuery allowed invalid syntax, a lot of themes (and plugins) used something like this:

a[href*=#]:not([href=#])

Which in jQuery versions less then 1.12 worked fine. However in the new version is invalid as it should be:

a[href*="#"]:not([href="#"])

That is not the problem with your site.

So the problem is not with your WordPress version, it’s the code in use within the theme throwing a JS error, which then prevents the EE JS from running.

I am able to get the script to work using the wordpress default theme but that does me no good and disabling the jquery in the theme breaks everything…

Sure it does, it confirms the issue is with the theme and not somewhere else.

Is the jquery.jCounter-0.1.4.js enqueued through the functions.php file or hardcoded within the footer template?


Josh

  • Support Staff

June 17, 2016 at 12:24 pm

When the theme includes a jQuery plugin that’s throwing an error (in this case it’s the jQuery Counter plugin), you’ll find this issue with any version of WordPress. The solution is to fix the error that’s being thrown by the jQuery counter plugin. Or another solution is you disable the Countdown timer functionality from loading on any page that has the registration form and calendar.


Odin

June 17, 2016 at 12:42 pm

I’m not a developer so everything you advised really just went straight over my head. I poked around in the functions.php and couldn’t find any reference to the jquery. I did find it in the application.php file and I think I commented this out and thats when the site stopped loading altogether.

I purchased a support token and opened a premium support ticket so I don’t take up space her in the forums.

Thanks for your help…


Josh

  • Support Staff

June 17, 2016 at 1:13 pm

We use the forums in either case. Do you know if there is supposed to be a countdown timer on this site somewhere? If that’s not the case, then we can disable the countdown timer script, and the problem is solved.


Odin

June 17, 2016 at 1:17 pm

I am not aware of a countdown timer being on any of the pages. The timer script can be disabled.


Josh

  • Support Staff

June 17, 2016 at 1:32 pm

It’s disabled now. It appears the only way the countdown timer would display is from a short code, but the short code requires some plugins that aren’t installed on your site anyway.


Odin

June 17, 2016 at 1:35 pm

Awesome! Thank you for your help. Question, If I upgrade the version of WordPress to the current version, will it break again? I want to make sure that I don’t mess up what you just fixed.

Thanks again for the awesome service!

Dale


Josh

  • Support Staff

June 17, 2016 at 1:37 pm

No, and upgrading to a newer version of WordPress probably isn’t what broke things in the first place anyway.

The support post ‘Event Registration Form Keeps Resetting’ 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