Support

Home Forums Event Espresso Premium Additional Attendees Problem

Additional Attendees Problem

Posted: February 6, 2013 at 4:50 pm

Viewing 7 reply threads


jkopeny

February 6, 2013 at 4:50 pm

I am having issues with using the additional attendees toggle on a new registration I am putting up. I have used it in the past with no problems but seem to be having issues now.

Here is the link : http://cc-ea.org/event-registration/?ee=57

Please Help!


Dean

February 7, 2013 at 2:38 am

Hi,

Your theme (or potentially a plugin) is deregistering the jquery that comes with WordPress (jQuery 1.83) and loading an older version (jQuery 1.5.1).

This is really bad practice as it not only stops the attendee toggle from working, it will stop other functions and features that need a newer version of jQuery from working too.

You can check to see if there is an update for the theme to see if that fixes it.

You can also contact the theme developer to fix it.

You can check the theme function file to find the code that is registering the old jQuery and comment it out/remove it.


jkopeny

February 11, 2013 at 11:59 am

Since I was able to use the additional attendees in the past on this theme it would most likely be a plugin correct?


Josh

  • Support Staff

February 11, 2013 at 12:33 pm

Hi there,

In this case, it’s a really old version of jQuery (1.5.1). So there are several different things that may be going wrong.

Right now ( as of version 3.5), WordPress includes jQuery 1.8.3. Most plugins are written to be compatible with what is currently shipped with WordPress. Older versions of jQuery may not have all the functions that the plugins (including Event Espresso) are depending on.

It may be something as simple as updating your theme so it’s on the latest version.


jkopeny

February 11, 2013 at 1:58 pm

Thanks Guys,

I added the following code to my themes functions.php file.

//jQuery Insert From Google
if (!is_admin()) add_action(“wp_enqueue_scripts”, “my_jquery_enqueue”, 11);
function my_jquery_enqueue() {
wp_deregister_script(‘jquery’);
wp_register_script(‘jquery’, “http” . ($_SERVER[‘SERVER_PORT’] == 443 ? “s” : “”) . “://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js”, false, null);
wp_enqueue_script(‘jquery’);
}


Josh

  • Support Staff

February 11, 2013 at 3:30 pm

Hi there,

It’s actually best practice to just use the version that ships with WordPress, so you’d basically remove all that stuff about deregistering jQuery and leave it like this:

function my_jquery_enqueue(){
wp_enqueue_script(“jquery”);
}

Then you can use the Use Google Libraries plugin if you really want it to load from Google. The plugin will make sure everything loads in no-conflict mode and if the Google CDN goes down, it will fall back to the version of jQuery that’s on your server.


jkopeny

February 11, 2013 at 4:51 pm

Thanks Josh,

I will make sure I add this. I have noticed an increase in speed all around my site. I really appreciate it. There was no reference to any jquery in my functions.php file before today, is it possible the author of my theme placed this in another file?


Josh

  • Support Staff

February 11, 2013 at 7:52 pm

Yes, some themes will have many function files. It might also be a plugin, which Dean mentioned as a possiblility.

Viewing 7 reply threads

The support post ‘Additional Attendees Problem’ 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