Support

Home Forums Event Espresso Premium Stripe Payments Slow

Stripe Payments Slow

Posted: September 19, 2018 at 1:20 pm


mpurse

September 19, 2018 at 1:20 pm

I’ve just set up Stripe as an payment integration on our site. It’s working all fine but very slow to load the success page after the payment is taken.

The email comes through with a receipt but the cog is still spinning on the page post payment, which I think makes it feel like the payment wasn’t successful.

Is this likely to be our server? I’d like generally to speed up our website but am a little concerned that caching tools might affect EE.


Josh

  • Support Staff

September 19, 2018 at 1:22 pm

It sounds like there’s a JavaScript error happening somewhere on that page, which would cause the cog to keep spinning. If you check the page with the web inspector are there and errors listed in the console?


mpurse

September 19, 2018 at 1:29 pm

Ah ha! I get this:
TypeError: undefined is not an object (evaluating ‘jQuery.datepicker.setDefaults’)
(anonymous function) — registration-checkout:622
i — jquery.js:2:27455
fireWith — jquery.js:2:28215
ready — jquery.js:2:30018
K — jquery.js:2:30374


Josh

  • Support Staff

September 19, 2018 at 1:36 pm

Good find! Usually an error like that one is caused by another plugin or even possible the WordPress theme loading a script on the page where it ought not (for example a plugin that adds a datepicker type input, but there’s no datepicker input on the page, so it throws an error). The way forward will be to temporarily deactivate all other plugins one-by-one until the error goes away.


mpurse

September 19, 2018 at 1:41 pm

Oh crikey. Right, here I go…


mpurse

September 19, 2018 at 1:50 pm

It’s something in the theme. 🙁


Josh

  • Support Staff

September 19, 2018 at 1:54 pm

Good find. If there’s a way we can download a copy of the theme we can see if there’s a way to unhook that script from that page. Usually a dropbox or Google drive link works best to share a copy of a theme.


mpurse

September 19, 2018 at 2:02 pm

Yep, I have it in dropbox for you: https://www.dropbox.com/sh/1unx068cc4zl9se/AACIoSU45wyIEazUDjovE_PKa?dl=0


Josh

  • Support Staff

September 19, 2018 at 7:16 pm

I loaded up the theme onto a local site and there’s no errors related to TypeError: undefined is not an object (evaluating ‘jQuery.datepicker.setDefaults’).

That said, there are some problems with extra <p> tags everywhere when shortcode content is output. I would advise removing lines 27-30 of the theme’s shortcode.php file, which are the following:

//move wpautop filter to AFTER shortcode is processed
remove_filter( 'the_content', 'wpautop' );
add_filter( 'the_content', 'wpautop' , 99);
add_filter( 'the_content', 'shortcode_unautop',100 );

Aside from that, I don’t see anything here that could be causing the error that’s on your site. Does the error happen if the theme is activated and only the Event Espresso plugin is activated? (no other plugins besides Event Espresso activated, including any add-ons).

The support post ‘Stripe Payments Slow’ 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