Support

Home Forums Multiple Event Registration Add-on Multi-Event Registration Breaks JQuery

Multi-Event Registration Breaks JQuery

Posted: January 28, 2013 at 12:27 am


Alan Flum

January 28, 2013 at 12:27 am

I just upgraded to the business edition of Event Expresso. When I activate Multi-Event Registration (MER), my slideshows and toggles that use JQuery break. I have deactivated all other plugins except MER and Event Expresso to isolated the problem. As soon as I deactivate MER, the problem goes away. Right now, I have MER deactivated.

I am using WordPress 3.51, and Event Expresso 3.1.29.1P. I am using a Theme called Perfekto from Templatesquare (on Themeforest). Any help or suggestions would be gratefully appreciated!

Thanks,
Alan


Dean

January 28, 2013 at 1:54 am

Hi Alan,

Do you have a link to the site in question?

Without seeing it I can only guess as to the problem, but I would say it is probably due to the theme (potentially a plugin) loading an old version of Jquery or a too new version (sounds weird, but true!)

With the versions of EE and WP that you are running you need a minimum on jQuery 1.7.2 and ideally the jQuery shipping with WP currently, which is 1.8.3. Anything higher or lower may cause issues.


Alan Flum

January 28, 2013 at 2:20 am

Hi Dean,

Thanks for your fast reply! The site is http://forestretreat.org . Right now, I reactivated most of the plugins but basically, the site breaks with just EE and MER activated. I am not very familiar with the inner workings of WordPress so if you could walk me through how to find what very of JQuery I am running and how to update to fix this I would be grateful.

Alan


Dean

January 28, 2013 at 2:53 am

Hi Alan,

Yes, on examining the theme it is running jQuery 1.5.1 which is just too old.

First thing I would do is check to see if the theme has an update available, though I doubt it as the sales page on Themeforest states it hasn’t been updated since 15th July 2011.

Generally the jQuery is enqueued (requested) in the functions.php, so by removing or commenting out the enqueue it will force WordPress to use the default (up to date) jQuery.

It will look something like this:

<?php
if( !is_admin()){
wp_deregister_script('jquery');
wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"), false, '1.3.2');
wp_enqueue_script('jquery');
}
?>

Also please note by deactivating this and using a more up to date version, there may be other elements in your theme (and maybe plugins but I doubt it) that will not function correctly if they relied on that version of jQuery.

If you need some more help let me know.


Alan Flum

January 28, 2013 at 2:56 pm

Hi Dean,

Thank you! That did the trick. There was indeed a link to jquery 1.5.1. I commented it out. That seemed to do the trick. In themes-scripts.php I commented out the following:

/* wp_deregister_script('jquery');
    wp_register_script('jquery', get_template_directory_uri().'/js/jquery-1.5.1.min.js', false, '1.5.1');
    wp_enqueue_script('jquery'); */

So far, I don’t see any negative effect from this. I appreciate your help and quick responses.

Alan


Jonathan Wilson

January 28, 2013 at 3:24 pm

Glad Dean was able to help. If you need anything else, let us know.

The support post ‘Multi-Event Registration Breaks JQuery’ 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