Support

Home Forums Multiple Event Registration Add-on MER Cart is Taking Too Long to Load…Minutes

MER Cart is Taking Too Long to Load…Minutes

Posted: January 27, 2014 at 4:45 pm


mike yanez

January 27, 2014 at 4:45 pm

Hello – I have a simple 4 event site in which I installed MER add on. Every time I add an item to my cart or update the ticket number (max set to 5), the site displays a loading image and takes a long time to load…sometimes does not even finish and I need to kill the page. Can you let me know what I am doing wrong?
http://specialgiftstheatre.org/musical-theatre-tickets/
(on this page I have the short code EVENT LIST)

Thanks for your help – Mike


Seth Shoultes

  • Support Staff

January 27, 2014 at 5:36 pm

Looks Like you have a Javascript error on your website that is preventing Multi Event Registration from working correctly:

SyntaxError: unterminated string literal
http://specialgiftstheatre.org/musical-theatre-tickets/
Line 291

Here’s a screenshot:
http://www.screencast.com/t/ePGdu2GS

  • This reply was modified 10 years, 3 months ago by  Seth Shoultes.


Seth Shoultes

  • Support Staff

January 27, 2014 at 5:41 pm

You might want to deactivate this plugin:
HTML Javascript Adder plugin v3.7


mike yanez

January 27, 2014 at 6:46 pm

Seth –
Thanks for your reply. I deactivated the plugin but the site is still hanging when adding items to cart and updating a cart items. How exactly should MER be implemented on a site? Thanks again for your help.


Sidney Harrell

January 27, 2014 at 7:12 pm

Looks like something is injecting links to resources directly, instead of enqueueing resources, like they are supposed to. This is messing up ajax calls.

<link href="../wp-content/plugins/plugin_edit_style.css" type="text/css" rel="stylesheet"  media="screen"/>
<link href="../wp-content/plugins/plugin_style.css" type="text/css" rel="stylesheet"  media="screen"/>
<link href="../wp-content/plugins/plugin_management_style.css" type="text/css" rel="stylesheet"  media="screen"/>
<script language="javascript" type="text/javascript"  src="http://specialgiftstheatre.org/wp-content/themes/specialgifts/js/jquery-1.7.1.min.js"></script>
<script language="javascript" type="text/javascript" src="http://specialgiftstheatre.org/wp-content/themes/specialgifts/js/jquery-ui-1.8.17.custom.min.js"></script>
<!--<link type="text/css"  href="../themes/specialgifts/css/jquery-ui-1.8.17.custom.css" rel="stylesheet" />-->
<link type="text/css"  href="http://specialgiftstheatre.org/wp-content/themes/specialgifts/css/jquery-ui-1.8.17.custom.css" rel="stylesheet" />


mike yanez

January 27, 2014 at 7:33 pm

Hey Sidney – I not sure how to go about deciphering your last post. This MER is stating to be more problems than it is worth. From reading the other MER posts, seems like it has issues with site themes and inner workings that I am not prepared to fix. The total EE product is pretty smooth until the MER was implemented. If you can suggest some other areas that may be the cause, I would appreciate it….Mike


Seth Shoultes

  • Support Staff

January 27, 2014 at 7:56 pm

Ya, the MER can prove to be very problematic when themes are not coded to the WordPress coding standards. From what I can see in the code Sidney posted above, your theme is loading JavaScript improperly, several times. That will not only break certain aspects of Event Espresso, but it will also produce errors when trying to use other plugins that are dependant upon JavaScript to function properly.


Seth Shoultes

  • Support Staff

January 27, 2014 at 7:57 pm

You might want to get your theme developer involved and show these errors we posted.


Sidney Harrell

January 27, 2014 at 8:25 pm

It’s not just MER, it’s anything that you want to use that uses ajax. They will all make a call to http://specialgiftstheatre.org/wp-admin/admin-ajax.php, which is a special location within WordPress. Nothing that you have installed, plugins or your theme, should be generating output when a request comes in to your site for that location except the plugin (or theme) for which that request is intended. That output above is being caused by whichever plugin(s) or theme owns the following files:

plugins/plugin_edit_style.css
plugins/plugin_style.css
plugins/plugin_management_style.css
themes/specialgifts/js/jquery-1.7.1.min.js
themes/specialgifts/js/jquery-ui-1.8.17.custom.min.js
themes/specialgifts/css/jquery-ui-1.8.17.custom.css
themes/specialgifts/css/jquery-ui-1.8.17.custom.css

We have seen a lot of themes from themeforest that do not play nicely with others by failing to follow WordPress best practices for theme and plugin development. Most of the time it is failing to wrap their jQuery within a no-conflict wrapper. Here it is failing to properly enqueueing scripts and styles.


mike yanez

January 27, 2014 at 8:30 pm

Hello All – I went ahead and backed up my site and deactivated each plugin until the MER worked. I found the troublesome one within the 20+ plugins installed. Luckily this plugin is not used anymore and can be deleted. Thanks to all of your help and your posts on this issue.


Seth Shoultes

  • Support Staff

January 27, 2014 at 8:33 pm

It looks like whatever was changed on the website within the last 30 minutes has fixed the problem. I just tested the Multi Event Registration on your site and it is working as expected now.


Seth Shoultes

  • Support Staff

January 27, 2014 at 8:37 pm

No problem! Thanks for the update.

Can you please tell us which plugin was causing the conflict?


mike yanez

January 27, 2014 at 8:45 pm

I bet you guys will smile..we had a developer create a ticket management app that did not work too well. Thus the reason why we stumbled upon your site. Great tool and even better support. Thanks again for your help.


Seth Shoultes

  • Support Staff

January 27, 2014 at 9:02 pm

🙂

The support post ‘MER Cart is Taking Too Long to Load…Minutes’ 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