Posted: December 7, 2013 at 9:46 am
|
I’m trying to debug a new problem with EE. Problem It’s not Paypal. They report that they have sent an IPN (copied below). Currently using Using an EE-customized version of EE: 32-core-4.0p-BETA-2013-08-30 Debugging tried so far CURL – I’ve confirmed my host is using it (which of course makes sense since previous payments succeeded) Instant Payment Notification (IPN) details Message ID |
|
In case this is useful, I turned on EE logging for about 1 1/2 hours and tried to pay at least once. Here’s a link to the very lengthy log: |
|
Also, all plugins ex EE were turned off (even though things worked fine with them all on last month. |
Hi Harvey, I checked into this and it appears that the shortcode on the transactions page isn’t getting parsed: http://ypowpo.com/registrations/?page_id=7 Normally the shortcode would not appear in the content when you visit the transactions page in the browser. Can you go into the admin, to Event Espresso – General Settings, and under the Critical Pages tab check to see if the Page Status and Shortcode are indicated as OK? |
|
|
All pages report Page Status OK, Shortcode OK |
|
Might have a useful clue! I had a separate installation of this EE beta that I used for testing. I don’t know all of the changes since I ended the test but I do know one for certain – it uses an earlier version of WordPress – I hadn’t yet upgraded to 3.7.1. I tested a payment and it worked fine! Do you have any reports of conflicts with 3.7.1? Might there be a setting I can change (or can I easily roll back a version? |
|
It was a pretty benign release for WordPress WordPress 3.7.1 Maintenance Release. This maintenance release addresses 11 bugs in WordPress 3.7, including: Images with captions no longer appear broken in the visual editor. Allow some sites running on old or poorly configured servers to continue to check for updates from WordPress.org. Avoid fatal errors with certain plugins that were incorrectly calling some WordPress functions too early. Fix hierarchical sorting in get_pages(), exclusions in wp_list_categories(), and in_category() when called with empty values. Fix a warning that may occur in certain setups while performing a search, and a few other notices. |
|
I’ve just confirmed that WP 3.7.1 was the issue. I rolled back to 3.7 and it works. Will probably need to do something in EE, although this may have already been fixed in 4.1 |
Hi Harvey, This may be an issue specific to the ee version that you’re using where the shortcodes aren’t getting parsed unless the WordPress permalink settings are set to Postname. In this case, it looks like your site is set to use the Default permalinks option. Can you try it with the Permalinks set to Postname? |
|
|
Thanks Josh. I’ll do that in a few weeks after I complete registration for this event. I don’t want my testing to interfere with an urgent need! |
|
Hmmm….not so simple after all. I seem to be getting intermittent behavior, even with 3.7. I think I’ll leave more problem solving for another time. And pray for the release of 4.1! |
Hi Harvey, Since it’s intermittent, it may be a network traffic issue. We’ve been seeing the IPN from PayPal be delayed up to 55 seconds between the time the payer returns back to the site and when the Payment Notification actually reaches the site to update the payment status. In cases where the Payment page loads up and it says the payment is incomplete, after a few minutes does the payment get updated to complete? |
|
|
That did happen a couple of times with a test event I set up for 1¢. After I refreshed the browser, it showed as complete. However, it didn’t do it every time. And for my $200 event, it’s been incomplete every time. Perhaps there’s a firewall issue at my host? Do you have any idea what port would be used by Paypal or by EE for the communication? Perhaps I could ask my host to monitor it or check the logs. |
PayPal list a range of IP addresses: |
|
|
Thanks Josh. I’ll ask my host to whitelist these addresses and see if that solves the problem. Many Thanks! |
|
Drat. My host just checked. Their firewall is not blocking any of these IPs 🙁 Any other suggestions? I did try changing my permalink but there’s a problem – I thin k related to the beta version I’m using. I even need to use short URLs to get viewers to the event page. The full URL never worked. Beginning to look like a wait for 4.1 is in order! |
Hi Harvey, When you tested this out on another site and it worked, was it using a PayPal Sandbox account? Also, I checked with Mike N. about this and he ran some tests against the same version of Event Espresso 4 that you have that’s also installed on one of our payment gateway test sites. He wasn’t able to reproduce the issue there. This may indicate there’s something wrong with an account or server configuration. Normally though, a misconfiguration would cause the payments to not update all the time, not randomly. |
|
|
I’ve been all through the forums looking for something very similar to this issue. It is intermittent. PayPal IPN is getting a 200 Response. BUT! The payment is not updated in EE and there is NOTHING about the transaction in the EE IPN Log. It is VERY strange indeed. Transactions before and after it that day are all fine. Have checked with server admins and nothing blocked (logs checked). A timeout would not return 200, right? Something’s up. We’re at 3.1.35.1.P and WP 3.6.1 |
Hi TheWHEGroup, If you have the exact times that the registrations were made that did not get logged in the paypal IPN log you could look in the server’s error log to see if there was anything going on with the server at that time. It may also help to verify that the pages with the [ESPRESSO_EVENTS], [ESPRESSO_TXN_PAGE], and [ESPRESSO_PAYMENTS] shortcodes are not being cached. This would be either by a caching plugin or by the host. |
|
|
I’m getting those server logs now. If it helps… These are multi-event registrations payment transactions. They contain both free events and non-free events. Interestingly, all the non-paid (free) events in the transaction are marked complete (the default is incomplete). If I attempt to re-send the IPN in that state, PayPal gets a 200 BUT there is nothing in the EE IPN log and the none of the event’s status change. IF however, I reset that entire transaction to “incomplete” and then resend the IPN, everything works. Is it possible that because some events are free, the code is marking all the events in that transaction complete and thus skipping the remaining (non-free) events in the transaction because you have code that skips “complete” events during an IPN update? — Peter |
|
NO caching enabled, plugin or server side Server error logs are clear. No errors Server log shows the incoming IPN 173.0.81.1 – – [20/Dec/2013:11:49:05 -0500] “POST /?page_id=13&id=327&r_id=17-52b474811dde9&event_id=17&attendee_action=post_payment&form_action=payment&type=paypal HTTP/1.0” 200 2252 |
|
I just noticed this on my Paypal account: My prices are in CAD. Perhaps there’s a need to update the EE script? |
@Peter, can you start a new thread and we can follow up with you there? @Harvey, can you go into Event Espresso>Settings>Payment Methods / Payment settings and under the PayPal settings verify that you have the Country Currency set to “Canadian Dollars” ? |
|
|
Yes, the country currency is set to Canadian Dollars. |
|
I just upgraded to WP 3.8 and ran another test on a 1¢ event. Worked fine. I was getting pretty consistent fails earlier. That’s a good sign! Looks like my problem might have been WordPress. Keeping my fingers crossed. |
|
Hi Harvey, Please keep us updated as to whether the WP update resolved the issue or not. |
|
I think the issue may have been WP 3.7.1. I just tried a payment for $200 under WP3.8. It took about 10-15 seconds for the sync to occur (maybe temporary heavy traffic), but the handshake did finally happen 🙂 |
|
That’s great to hear! I will mark this thread as resolved. If the issue re-occurs, please start a new thread but link to this one. |
The support post ‘Paypal IPN not being received by Event espresso’ 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.