Posted: August 11, 2017 at 8:26 am
Hi – using Stripe with EE4. The stripe transaction processes and I get the confirmation. Screenshot: http://imgur.com/a/QsMVQ Issues: * Yellow box has no text in it. Gear continues to spin. Box changes to red. No text. Are these upstream errors related at all? 2017/08/11 14:11:03 [error] 16339#16339: *46501 upstream timed out (110: Connection timed out) Also seeing this in my slow error log –> [11-Aug-2017 14:14:19] [11-Aug-2017 14:14:24] |
|
Hi there, May I ask what’s the URL of your site’s Thank you page set in Event Espresso > General Settings > Critical pages? |
|
Sure, it’s https://www.nacephilly.com/thanks-for-your-purchase/ It shows “page status OK” in the admin side. |
|
Would you be able to run the same test with the default WP theme temporarily activated along with all other plugins deactivated? |
|
I did it with the default theme – the text in the boxes after entering credit card info did show up – first the yellow box – then the red box – however, the transaction did complete as before. Didn’t try with plugins disabled yet. Will do that next. Any ideas in the meantime? |
|
The other theme is likely hiding the notifications text with some CSS. |
|
Ok, tried it with plugins disabled and still had the issue. I continue to get the email confirmation and the transactions still are getting processed. I did try it with a coupon code for a 100% discount. When I did this, the system read the discount and went right to the thank you page – no issue – but of course no payment was processed. |
|
Two things you can check/change: 1) Check to see what’s returned for “remote_posting” on the Event Espresso > Maintanance > System Information page 2) You can go to Event Espresso > Messages > Settings and set the messages to send on a separate request. This will help if there are any bottlenecks happening during the final step of the checkout when the payment response is captured. |
|
1) Your server has fsockopen and cURL enabled. 2) It’s already set to “separate request” |
|
Can you check the browser’s console for errors when the spinning gear doesn’t stop? |
|
See linked –> http://imgur.com/a/naDYt |
|
I cleared that message and it didn’t fix it. |
|
That doesn’t look like an error. Can you try activating WP_DEBUG? You can set it to log errors only by following this guide: https://codex.wordpress.org/Debugging_in_WordPress#Example_wp-config.php_for_Debugging Also, you can get the logs that get recorded for each transaction’s payments in Event Espresso > Payment Methods > Logs. It will likely not have errors there, but if there is an error related to the Stripe API they may get logged there. |
|
Log files –> https://www.dropbox.com/s/mlbxmfkrnunuans/Logs.zip?dl=0 Thanks. |
|
Those logs were’nt what I was referring to, but since there are a number of (110: Connection timed out) errors logged there, you can try the solutions posted here: https://www.tekovic.com/fixing-timeout-between-nginx-and-php-fpm |
|
I use Flywheel for hosting and went back to them. Here’s what they told me: I just tried a transaction like you suggested, and I’m seeing the issue just as you describe. However, it doesn’t look like there’s much we can do about it on our end. I did bump the timeout up a little more, but the root issue is: the Event Espresso plugin is just doing _something_ that is either exceptionally inefficient or that requires far too much memory. Given that this site is on a Tiny plan, already has maximum cache settings and now a timeout significantly above the normal settings, I’m afraid our only recommendation is to work with the plugin’s support and/or a developer to figure out what the hangup is with that process. I do have an example of the error from the site’s logs, which I’ll include at the end of the email, if that’s helpful. Sorry we can’t be more directly helpful than that, but hopefully that gets you pointed in a helpful direction at least. Let us know if you have any questions or if we can help with anything else in the meantime. Here are the errors I mentioned (the first from the slow_error logs, the second from the error log):
|
|
Also, everything in the transaction logs is successful. |
|
Hi team – let me know what I can try next. I spent time going through other support requests and don’t see any problems like the one I’m experiencing … and I need to get it resolved ASAP. Again, transaction still being processed fine but users aren’t directed to the thank you screen. |
|
Hi there, If you go to Event Espresso -> Messages, you’ll be on the message activity tab. Do you have a lot of messages sitting waiting to send? (Blue status bar) The setting that Josh recommend setting to ‘on separate request’:
Test what happens if that setting is set to ‘on same request’. What I suspect from the above is the server is choking when trying to generate/send a batch of emails within the message queue so lets see if the above works before moving forward. |
|
Hi Tony – all of the messages are green. The only transactions I’ve tested are the ones I’ve been testing – there’s been no volume through the site so far. I just tested setting it to “same request” and THE PAYMENT COMPLETED!!!!! HOORAY!!!!!!! I am going to test a little more today just to confirm, so let’s leave the case open for the moment, but I am very encouraged! |
|
Ok, so sounds like something is going on when EE is using wp_cron on your site.
Are they all payment related messages? ‘Payment received’ for example? You mentioned your getting the confirmation emails, is that all of them, payment and registration?
Great, but the strange part of that is the ‘on separate request’ setting was designed to reduce the load on the server during the registrations. What it does is add any messages that need to be sent to the message queue, the message queue uses wp_cron to work through batches of messages to generate then send them in batches. The ‘on same request’ setting does all of that on the request before redirecting to the thank you page. So if you select 20 tickets EE may needs to update the transaction/registrations, then generate 20 individual registration messages, (plus others depending on setup but keeping the numbers easy) then send those 20 messages, then direct you to the thank you page which all takes time and resources. Some message types (such as payment related messages) skip that and instant send as they are considered high prioirty which is why I’m asking about the specific message types above. |
|
Hi Tony – yes, all of the messages are green and payment-related –> all of them are “Payment Received”. Is there anything I can look @ re: wp_cron or specifically ask of my hosting company (Flywheel) settings-wise? |
|
Ok, 2 things to test. Set the option back to ‘on separate request’ and add a registration using an offline payment method, finalize so you should get to the thank you. Does it load and do the registration emails send? Then install the WP Crontrol plugin and go to Tools -> Cron Events. Does it mention that Cron is disabled? Can you see a list of ‘events’ there? – http://take.ms/ID83b |
|
Hi Tony – earlier in testing I had tried testing by using a discount code that was 100% – the transaction went through fine and I got the confirmation. Screenshot attached of the Cron. It’s active. |
|
That’s not the same test, you need to test a paid registration using a payment method, Free registrations (like when using 100% discount codes) don’t use payment methods. I’m testing the payment method step is finalizing the registration and triggering messages when a payment method is selected, you have the default registration status set to Approved on your events so it’s a similar test but not the same path.
Ok, great. |
|
Just checked the check payment as described – it went through with no problem. |
|
Hmm, and that was with the messages set to |
|
Correct, yes. |
|
The support post ‘Stripe Checkout Issues’ 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.