Posted: April 4, 2019 at 3:53 pm
|
When i try to checkout from purchasing any class on my site the server timesout. An example would be: https://academyflorida.com/events/mos-excel-2016-database-features-and-pivottables-boot-camp-19/ |
|
Links to pics https://1drv.ms/f/s!AhKXSEeNQ3v8gr4DU33Dz84yBdcRcg |
Hi, The 504 timeout after submitting the payment information to Quickbooks sounds like a communication issue between your site and Quickbooks. If you go to Event Espresso > Payment Methods > Logs, then check the last few log entries, are there any error codes from Quickbooks included there? |
|
|
Yes I do see the following error under payment details in the gateway response box: QuickBooks Card Authorization/Capture Error: PMT-4002 number is required. I added a screenshot to the onedrive link above |
Hi there, The word doc containing a screenshot isn’t actually of the payment logs, that’s a screenshot of the EE Transaction, which contains a ‘Gateway Response’ field showing an error, but within the payment method logs it should have more details. Note use please a .JPG file rather than an image within a doc, it compresses the image. You can open Paint, paste and save as JPG (or PNG) then add that file directly. Go to Event Espresso -> Payment methods -> Logs. In the list, you’ll find log entries for each payment attempted on your site and every single payment can create multiple log entries so you may have many entries. Find the log entries for 8829 (the Transaction included in the .doc file) and then click on the log entry ID’s on the left of the table, not the TXN Id on the right. You’ll then have more information for each of the requests sent to and received from Quickbooks. Does that show any additional details on that error? |
|
|
I just updated the link with the screenshots (JPEGS) or the QuickBooks errors I’m receiving |
If you temporarily deactivate the WPForms plugin on your site, does it work then? |
|
|
Yes, once I deactivate the WPForms plugin the transaction does go through but the site freezes. It freezes at the registration checkout page. It eventually says the registration did not go through and I have to refresh and start again. When I refresh the page that’s when the Thank You page appears with the confirmation. It takes a long time to get the message to refresh. I do get the event payment details email which verifies the transaction is complete and Quickbooks does show the transaction is being processed. What do you think is causing request to refresh in order to finalize the transaction on the front end? |
Ok, the reason it fails with WPForms enabled is it is overriding some JS that EE uses and causing a JS error on the page, this then prevents some other JS from running that creates a payment token with Quickbooks. So
Have you checked your server error logs around the time this error is thrown? It sounds like your request is now being sent to Quickbooks and a response is received (as the payment is complete) but then a fatal error is being thrown so the page stops and eventually the ajax request times out and tells you to refresh.
From the above, it sounds like the transactions is correctly updating, its not the refresh that does it, but something is preventing the redirect that sends you to the thank you page to view the updated transaction. If theres nothing in the error logs, add this snippet to your sites https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug The retest, that should log any errors to |
|
|
Ok, we have added the snippet to our WP-config.php file. We retested the purchase of a class and the same thing happened. The transaction went through on the backend but froze at the registration checkout. I had to refresh the page to get the Thank You / Confirmation page. |
Ok, I’m not getting any errors in the log file. Can you check how your messages are set to send please: Event Espresso -> Messages -> Settings What is ‘Generate and send all messages:’ set to? If you temporarily disable the emails within EE (same settings page just click the green toggle icon on the email section, that will disable the emails). Then run another test, does it work then? |
|
|
Generate and send all messages is set to “on a separate request” When I disabled the emails within EE the transaction gets approved and processes without any issues. So how do I get the email messages to work again without destroying the processing of a registration? |
Ok, so that usually means there’s an issue with sending email from your server (not from EE itself). When you go to Event Espresso -> Messages -> Message Activity How many email do you have queued for generating and queued for sending? Are you using any SMTP plugins etc to send emails or just using whatever you server is setup to use? We recommend using a transaction email service to send your email, in short it means WordPress will pass any emails generated by it to the mail server of whichever provider you chose rather than from your current server, this usually fixes the majority of email issues. We have some details here: https://eventespresso.com/wiki/postmark-app-mandrill-transactional-email-handling-services/ |
|
|
Installed Sendgrid plugin and sent test message and everything worked. When I enable email messages in EE the site still freezes during registration checkout. I still need to refresh in order to see Thank You page. How do i get past this issue ? |
When you go to Event Espresso -> Messages -> Message Activity How many emails do you have queued for generating and queued for sending? |
|
|
I have zero emails queued for generating and zero emails queued for sending. At this point I think it would be best if I get professional assistance from EE as I have spent hours trying to get this plugin to function correctly on my site. Can EE support get this plugin to work on my site ? |
|
I updated link with PIC https://1drv.ms/f/s!AhKXSEeNQ3v8gr4DU33Dz84yBdcRcg |
Hi, If you’re looking to get priority support that is available with the purchase of a priority support token. Normally professional EE support is provided here in the forums, as that’s what’s included with the support license. Looking over this topic, I do wonder if there’s an issue with loopbacks on this server that affects the process when the emails are triggered. So if you were to buy a support token, here’s what we’d check next: We’d install the Health Check plugin, then go to its dashboard page and check to see if scheduled tasks and/or loopbacks are working as expected on the server. If they’re not working, then one possible solution would be to add the following to the wp-config.php file: See also: |
|
The support post ‘Checkout Does not complete causing a Server 504 Gateway timeout’ 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.