Support

Home Forums Event Espresso Premium [EE4] Checkout page JS error

[EE4] Checkout page JS error

Posted: February 16, 2014 at 5:57 pm


Martin Adnum

February 16, 2014 at 5:57 pm

Hi,

I am currently using –
Wordpress Version: 3.8.1;
Event Espresso Version: 4.1.3.reg;

I receive this error whilst on the checkout page:
Uncaught TypeError: Object [object Object] has no method ‘eeInputValue’ single_page_checkout.js?ver=4.1.3.reg:84

This error only appears when using my theme, and not on the TwentyFourteen theme. However I cannot see any difference in HTML/Imported scripts that would cause this error.

Thanks.


Sidney Harrell

February 17, 2014 at 4:15 am

Can we get a link to check it out? Do you have this set up on a dev site?


Martin Adnum

February 17, 2014 at 3:30 pm

Sorry @sydney it is on a dev environment


Dean

February 18, 2014 at 1:54 am

Hi Martin,

If it is on a development server it is hard for us to pinpoint the issue. As you said it only occurs on your theme and not in a default theme, I would suggest looking at the javascript in the theme.

One area to look at is whether there are multiple instances of jQuery and what version of jQuery is being loaded (1.10.1 is the one that ships with WP 3.8)


Martin Adnum

February 18, 2014 at 11:13 pm

I will link you when the website is placed on the staging server.

Thanks for the suggestions!


Dean

February 19, 2014 at 3:17 am

No problem


Brent Christensen

  • Support Staff

February 19, 2014 at 8:43 am

Object [object Object] has no method ‘eeInputValue’ 

That error means that there is something wrong with one of the form inputs on the registration checkout page, because eeInputValue() is a function for retrieving the value of a form input.

Your theme most likely has some JavaScript of it’s own that is attempting to modify the form inputs in some way, but is instead damaging them to the point that EE’s JavaScript no longer recognizes them as form inputs.

Look for form inputs (questions) that have code or html spilling out around them on the page.

As well, if you can tell us what theme you are using, and it is freely available for download, then we can test it to try and identify the conflict.


Martin Adnum

February 24, 2014 at 9:46 pm

I have no JS that modifies the inputs on any page. I am working on a completely custom theme. Here’s a link to download the theme:


Martin Adnum

February 24, 2014 at 9:46 pm

*moderated*

  • This reply was modified 10 years, 2 months ago by  Dean. Reason: moderated


Josh

  • Support Staff

February 25, 2014 at 12:31 pm

Hi Martin,

I couldn’t get this theme to activate until after I fixed the theme’s comment header lines in style.css.

Once I got it to install the issues are fairly straightforward:

1) You should not register another copy of the jQuery library. It’s best to only use the version that ships with WordPress. With that, you do not really need to enqueue jQuery if you make your main.js file dependent on jQuery. WordPress will do the rest. Suggested code changes to functions.php:

a) remove the additional jQuery library that’s being registered and enqueued.
b) change the main.js to require jQuery the recommended way:

wp_register_script('lt3_main', LT3_FULL_SCRIPTS_PATH . '/main.js', array( 'jquery' ), 0.1, true);

2) The first part of main.js isn’t written to be in jQuery no-conflict mode. Here’s a suggested code change:

// main.js
(function($) {
$(function(){

	$.stellar();

});;// plugins.js
})( jQuery );

Here are a few references that may help:

http://codex.wordpress.org/Function_Reference/wp_enqueue_script
http://digwp.com/2011/09/using-instead-of-jquery-in-wordpress/

The support post ‘[EE4] Checkout page JS 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