Support

Home Forums Event Espresso Premium Error the first time clicking pay now

Error the first time clicking pay now

Posted: March 17, 2016 at 2:42 pm

Viewing 30 reply threads


koldtoft

March 17, 2016 at 2:42 pm

I get this error the first time I click the “pay now” button:

http://grab.by/OSk2

But then if I click it again, it’s fine. The visa thing comes up.

The 2nd time I click the button, it then works.

http://grab.by/OSkq

You can test it here (by adding a ticket and trying to pay with visa)

I am using Stripe


Tony

  • Support Staff

March 17, 2016 at 3:18 pm

Hi there,

The second link is the same link to the image, can you post the link to the event again please?

Are you using the Payment Methods Pro add-on?

Are you using the latest version of the Stripe add-on? (Currently 1.0.12)


koldtoft

March 17, 2016 at 4:46 pm

oops sorry.. yes the link to the event is
http://ec2-52-29-150-243.eu-central-1.compute.amazonaws.com/events/test-event-1/

Event Espresso – Stripe Gateway (EE 4.6.0+)
Version 1.0.12.p

I dont think i am using the payment methods pro addon.. here are all the addons i have installed.

http://grab.by/OSvC


Lorenzo Orlando Caum

  • Support Staff

March 18, 2016 at 9:48 am

Hello, I’m seeing something a little different for the errors:

http://cl.ly/3t3j1D2I113p/Image%202016-03-18%20at%2011.43.40%20AM.png

However, looking at your plugins, the site doesn’t appear to have a plugin that could block the admin-ajax connection

Could you temporarily switch to another WordPress theme such as Twenty Sixteen and let us know if the issue continues?


Lorenzo


koldtoft

March 18, 2016 at 10:03 am

Yes, I have switched to the default theme now…… same problem


Lorenzo Orlando Caum

  • Support Staff

March 18, 2016 at 10:29 am

Alright, thanks for giving that a try. Could you share some feedback on how the site was setup?

I see its running on AWS.


Lorenzo


koldtoft

March 18, 2016 at 7:50 pm

Sure.

It’s a pretty standart setup. Yes, it’s an EC2 AWS instance – t2.micro (but I can upgrade it to a faster instance, if that could be an issue?)

Running a LAMP stack on Ubuntu.

Ubuntu 14.04.3 LTS | http://grab.by/OU4M

Apache 2.4.7 | http://grab.by/OU4E

MySQL 14.14 – Distribut 5.5.44 | http://grab.by/OU4K

Standart WordPress 4.4.2 with the plugins posted in previous screenshot. Nothing else done or changed, except the theme.

No security to speak off.

If you need it I can create an admin WordPress user for you and even a ppk key, so you can get SCP and SSH access.


koldtoft

March 18, 2016 at 7:53 pm

The message looks like this by the way.. almost like some error test mode is on.
http://grab.by/OU4W

And then if oyu click the pay now bytton again,it works fine… like this
http://grab.by/OU4Y


koldtoft

March 18, 2016 at 8:00 pm

Running PHP 5.5.9 by the way…
http://grab.by/OU58


koldtoft

March 19, 2016 at 7:20 am

Also. I am not sure what this means, but first (when it fails) the pay now button is in the left side (see: http://grab.by/OUec), and then once i clicked it once, the error comes up and now the button is in the right side (see: http://grab.by/OUee)

I did an inspect in the two buttons, to see if I could find any difference:

The non working button:
http://grab.by/OUey

The working button:
http://grab.by/OUeA

Also I just tested this as being logged in and logged out, as well as in IE edge and Chrome


koldtoft

March 19, 2016 at 7:25 am

Comparing the two URL’s looks like this
So when i click or select the “pay by credit card” option, the URL does not update, so it looks like this:
http://ec2-52-29-150-243.eu-central-1.compute.amazonaws.com/registration-checkout/#checkout

Then once I click the pay now button and get the error message the URL changes / updates and now it looks like this:
http://ec2-52-29-150-243.eu-central-1.compute.amazonaws.com/registration-checkout/?step=payment_options#checkout


Tony

  • Support Staff

March 21, 2016 at 3:51 am

This error – http://grab.by/OU4W

Basically means there was a problem with the JS that should be used for the Stripe payment and looking at the images you’ve provided (thank you for the additional testing btw) I looks like the scripts may not be loading on the initial page load.

I tried to run some test registrations on your event but its no longer available, have you made the event private?

If you could either create a new event or publish the original one I’ll run some more testing and see if we can narrow this down.

Also if you have changed the /events/ slug (which may be why I cant access your event) to something else you’ll need to flush your permalinks, navigate to:

Settings -> Permalinks

Make no changes but just click to save the settings.


koldtoft

March 21, 2016 at 3:54 am

http://ec2-52-29-150-243.eu-central-1.compute.amazonaws.com/events/test-event-1/


koldtoft

March 21, 2016 at 3:55 am

I did the thing you said with the permalinks and that fixed it.. Don’t know why that happened.


koldtoft

March 21, 2016 at 4:59 am

Just FYI, I am quite anxious to have this fixed.

I have been postponing this event for a long time, trying to establish a system from which we can present our events and sell tickets. This speaker is pressing me to send out the invitations, but I can’t really do it, before we have a working payment system, and I don’t want to use PayPal.

So any kind of workaround, hack, fix or anything really that could get this working would be fine, at least for now…

Thanks again for the help. It’s much appreciated.


Tony

  • Support Staff

March 21, 2016 at 6:03 am

I’m still getting no page found – http://take.ms/2Hwbe

Do you have another plugin that deals with events or does your theme have its own events section within the admin at all?

Try changing the EE events slug to something else to confirm, go to:

Event Espreso -> Events -> Templates (tab at the top)

On that page look for ‘Event Slug’ and change it from ‘events’ to ‘ee-events’ then save the settings.

You’ll now once again need to flush permalinks.

Once that’s done your event page will be

http://ec2-52-29-150-243.eu-central-1.compute.amazonaws.com/ee-events/test-event-1/

Lets see if that loads.


koldtoft

March 21, 2016 at 6:31 am

yes that pages works now. I changed the slug. I dont know why the event link stops working, I did not have any issues with that before.


koldtoft

March 21, 2016 at 6:32 am

The payment problem is still there tho…


Tony

  • Support Staff

March 21, 2016 at 6:38 am

Do you have another plugin that deals with events or does your theme have its own events section within the admin at all?


koldtoft

March 21, 2016 at 6:44 am

No.. I only have the plugins previously posted (see above). No other event plugins.

The theme is called OnePress and I dont think it has anything event related. I also tried setting the default theme and it changed nothing.


Tony

  • Support Staff

March 21, 2016 at 6:46 am

Basically means there was a problem with the JS that should be used for the Stripe payment and looking at the images you’ve provided (thank you for the additional testing btw) I looks like the scripts may not be loading on the initial page load.

This is the problem with the Stripe payment method.

When you initiall load the payment options step the Stripe Add-on scripts are not being loaded within the page – http://take.ms/MGV1K

Hit the pay button and the page reloads – http://take.ms/tjJvJ

Are you running any caching plugins?

Any server side caching?


koldtoft

March 21, 2016 at 6:56 am

No, I don’t have any server caching that I know of. If you want I can give you SSH access (putty) as well as a login to WordPress if that helps at all?


koldtoft

March 21, 2016 at 6:59 am

It’s also worth mentioning that I went over all this with Lorenzo Orlando Caum, posting a link showing all installed plugins and trying with different themes.


Tony

  • Support Staff

March 21, 2016 at 9:19 am

I read through the steps you went through with Lorenzo but I need to make sure nothing has changed. The page shows more plugins have been activated since the screenshot was taken and this is also not happening on any of my test sites using Stripe so I’m just trying to narrow down the cause.

The problem is the Stripe scripts are not being loaded on the event page, when you click the pay now button the page refreshes with and the scripts then load (refreshing the page manually does not help), the Stripe add-on relies on Javascript to function.

Do you have ElastiCache enabled through AWS? I can’t think of any other reasons for this to happen other than caching currently.

The issue with /events/ is a separate issue but may be a clue as to what is causing the problem.

If you can you send temporarly WP admin login details using this form:

https://eventespresso.com/send-login-details/

I’ll take a look one the site and see if I can spot anything.


koldtoft

March 21, 2016 at 9:52 am

I have sent it. I could give you SCP access as well, but there is no option to attach an auth (ppk) file.


koldtoft

March 21, 2016 at 9:58 am

I don’t have ElastiCache enabled. Unless it’s something that is on by default.


Tony

  • Support Staff

March 21, 2016 at 3:05 pm

We have just pushed version 4.8.37.p for Event Espresso that should fix this. Please update to that version and retest.

If the update does not show on your site just yet you can visit Event Espresso -> General Settings, make no changes and just save the settings.

EE will check for updates and should allow you to update through the admin.


koldtoft

March 22, 2016 at 3:54 am

Perfect. It works like a charm now 🙂 Thank you very much.

One minor issue tho. (I don’t know if I should start a new thread for this)

The “proceed to finalized registration” button is still there on the checkout page, and since it’s big and green, it looks like the primary action button. (but it does nothing)

1.
The primary action button is the “pay now” button. How do I go about removing the “proceed to finalized registration” when stripe payment option is selected.

2.
How do i “rename” the “proceed to finalized registration” button so the text on the button is “Pay now” when the PayPal payment option is selected.

When Stripe is selected:
http://grab.by/OWW0

When PayPal is selected:
http://grab.by/OWVU


koldtoft

March 22, 2016 at 3:56 am

FYI it looks like this when inspecting it (so it’s disabled it seems, but still showing)
http://grab.by/OWWi


Tony

  • Support Staff

March 22, 2016 at 8:23 am

1.
The primary action button is the “pay now” button. How do I go about removing the “proceed to finalized registration” when stripe payment option is selected.

Its because your theme is using !important to set the color of the button to green – http://take.ms/OMQkh

Generally we advise against modifying the core files (be it a plugin or theme) but you’ll need to remove the !important for the button to work – http://take.ms/yUsIA

2.
How do i “rename” the “proceed to finalized registration” button so the text on the button is “Pay now” when the PayPal payment option is selected.

Currently that isn’t an option we provide.

The Proceed to Finalize button is part of SPCO and is loaded before separately from the payment methods, to change the code based on the payment method dynamically you’ll need to add some JavaScript to the page.


koldtoft

March 23, 2016 at 4:36 am

Got it. Thanks.

Viewing 30 reply threads

The support post ‘Error the first time clicking pay now’ 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