Support

Home Forums Event Espresso Premium 'Add more attendees' link not working

'Add more attendees' link not working

Posted: July 3, 2013 at 4:15 am

Viewing 6 reply threads


straybark

July 3, 2013 at 4:15 am

Apologies as I know this has been brought up before but ….

We have been using EE for a year or so now and upgraded to latest version last week (v 3.1.33.3.P on WP 3.5.2) and have since noticed that the ‘Add more Attendees’ link is no longer working. Have been thru the jquery registration and such and can’t see a conflict.

We’ve turned off the ‘Add more’ function on all our events for now except for:
http://www.stjohnschambers.co.uk/events-listings/?ee=28

….. help? advice?


Dean

July 3, 2013 at 4:31 am

Hello,

Quoterotator is using the jquery shorthand of $ without correctly calling it (WordPress doesnt like it unless it is in no conflict mode – http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_Wrappers )

As such that error is stopping all jQuery after it from loading so the add more link doesnt work. Resolve the quoterotator issue and it should allow the add attendee button to work unless there are further jQuery errors.


straybark

July 5, 2013 at 11:44 am

Thanks for catching that Dean – have wrapped the script in question but still no luck.

Have also noticed odd error with css loading – we are using the themeroller default but getting an error saying that it can’t find the file at ….wp-content/plugins/event-espresso/templates/css/themeroller/themeroller-base.css/style.css?ver=3.5.2

seems that this doesn’t exist as the URL is incorrect as it just adds /style.css to the end of the correct address. but can’t see how this would cause the Add More issue.


Josh

  • Support Staff

July 5, 2013 at 12:29 pm

Hi Straybark,

There are a couple other things that are going on that need to be addressed. The first one is more theme related in that there are two copies of jQuery being loaded on the page.

This one:

http://www.stjohnschambers.co.uk/wp-content/themes/sjc/js/jquery-1.9.1.min.js

and this one:

http://www.stjohnschambers.co.uk/wp-includes/js/jquery/jquery.js?ver=1.8.3

The theme should be fixed so it only loads one copy. This can be done by using the wp_enqueue_script function. You can see this page for more details:

http://digwp.com/2009/06/including-jquery-in-wordpress-the-right-way/

In addition to the CSS files not loading, none of Event Espresso’s JavaScript files are loading either. This includes the espresso_add_reg_attendees.js file and jquery.validate.min.js, and validation.js.

Normally the scripts get added in the footer via the wp_footer() function in the footer.php template. If you look at the bottom of the above linked registration page the footer is missing. It appears to be stopping right after the #maincontent div closes. Since the body class includes “page-template-events-php” that’s likely the next place to look to make sure this page template is set up to load a footer template.


straybark

July 5, 2013 at 2:52 pm

Thanks for quick response – will see if we can get thru that without bothering you again.

Any thoughts about the odd themeroller url?


Josh

  • Support Staff

July 5, 2013 at 3:24 pm

The themeroller stylesheet loads up in the browser when I go to:

http://www.stjohnschambers.co.uk/wp-content/plugins/event-espresso/templates/css/themeroller/themeroller-base.css

I’m not sure what’s appending the /style.css to the end of it. You might try temporarily deactivating other plugins or temporarily switching to another WP theme to narrow down the issue.


straybark

July 8, 2013 at 5:58 am

i can see the themeroller css loaded twice – once correctly and one with the faulty url. but this is a mute point as have managed to resolve the issue.

thanks for ALL the prompt and helpful advise & direction 🙂

Viewing 6 reply threads

The support post ‘'Add more attendees' link not working’ 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