Support

Home Forums Event Espresso Premium Add More Attendees – not working 3

Add More Attendees – not working 3

Posted: January 14, 2013 at 3:43 am

Viewing 5 reply threads


pvangorder

January 14, 2013 at 3:43 am

I know it’s my theme, not any additional plugins.
So I added the recommended php code to my theme’s functions.php :

if ( !is_admin() && function_exists( 'espresso_raw_formatter' ) ){
	remove_filter('the_content', 'wpautop');
	remove_filter('the_content', 'wptexturize');
	add_filter('the_content', 'espresso_raw_formatter', 99);
}

I’ve turned the EventEspresso plugin off and on.
I checked FireFoxes Error Console and it says “it’s not a function”:

Error: TypeError: $(…).on is not a function
Source File: http://buckeyegathering.net/wp2/wp-content/plugins/event-espresso/scripts/espresso_add_reg_attendees.js?ver=0.1
Line: 11

which is this line:

$( ‘#registration_form’ ).on( ‘click’, ‘.add-additional-attendee-lnk’, function(e) {

Thoughts?
Thanks!


Dean

January 14, 2013 at 4:42 am

Hi can you provide a link to an event with the issue please?


pvangorder

January 14, 2013 at 12:17 pm

Of course, how foolish of me (was up very late last night!)….

http://buckeyegathering.net/wp2/event-registration-2/

EE: 3.1.29.1.P
ECalendar: 2.0.4
Wordpress: 3.5
Mac OSX 10.6.8,
Firefox 18.0
Safari 5.1.7 (6534.57.2)

Using no other plugins than yours (just EE and your Calendar)


Josh

  • Support Staff

January 14, 2013 at 12:42 pm

Hi there,

I’d recommend removing this code:

if ( !is_admin() && function_exists( 'espresso_raw_formatter' ) ){
	remove_filter('the_content', 'wpautop');
	remove_filter('the_content', 'wptexturize');
	add_filter('the_content', 'espresso_raw_formatter', 99);
}

because this is a jQuery issue.

The theme that is installed is calling an older version of the jQuery JavaScript library (1.4.2) that predates when jQuery added the on method (version 1.7).

In this case, you’ll need to update to the latest version of the WP theme. If the latest version is still using the out of date version of jQuery, you can contact the theme author for support, or update the theme so it uses the version of jQuery that is included with WordPress.

Please see this post for more info and code examples: https://eventespresso.com/2012/08/using-jquery-in-safe-mode/


pvangorder

January 14, 2013 at 12:58 pm

First THANKS for your promptness, you guys are amazing!

If I may share a painful ‘lol’: I do have the latest version of the template/theme. I know the old template works with the older WP and EE. If the NEW template NEEDS the old JavaScript Library, then I may have to see if the OLD template works with the NEW WP and EE.

I was trying to be good by getting everything up-to-date to avoid exactly this: compatibility issues.

So I’ll invent a new acronym for this occasion:
LAC (Laughing And Crying!)
; )
Thanks again.


Josh

  • Support Staff

January 14, 2013 at 1:23 pm

I doubt the theme needs the old version of jQuery. It’s usually a case where the theme author de-registers/de-queues the version of jQuery that ships with WordPress and switches to the Google CDN version, with the unintended consequence of freezing the version number in time. If you check with the developer of the theme, you can ask them if that theme will work with newer versions of jQuery.

Viewing 5 reply threads

The support post ‘Add More Attendees – not working 3’ 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