Posted: May 29, 2014 at 3:26 pm
|
Hopefully you guys have an answer, we’ve had several people digging into this for a few hours now and the best we can figure is that its limited to Event Espresso in some way (Authorize.net payments work on the same site with WooCommerce very quickly). So here’s the issue: When we complete a credit card payment through authorize.net and click to submit the payment, the page stalls. The payment goes through quite quickly, as we get confirmation emails of the payment almost right away, but the page just keeps loading and waiting. Somewhere around 2-3 minutes later usually the page finally comes up and has the correct information on whether or not the transaction was successful. Lowering our server’s max script execution time does not affect this. We’ve tried many things, we have verified that the API calls aren’t getting blocked by our security plugin nor by the server’s firewall. We have verified that this is a problem exclusive to event registration, our woocommerce store using the same Authorize.net payment method does not have the issue. We are using an older version of event espresso that we can no longer update due to some customizations that had to be done (at the advice of event espresso support). Event Espresso Version: 3.1.34.P We are hesitant to update either of these because this is a live site and we cannot risk having anything break. I also noticed this similar issue (albeit with a shorter load time) a few days ago. The issue is nearly identical so I’m not convinced this is an isolated problem. https://eventespresso.com/topic/very-slow-complete-purchase-process/page/2/ Any information on what could potentially be a cause here would be greatly appreciated. |
|
Forgot to link the site: If you want to do test transactions, let me know and I can enable test mode through authorize.net |
Hello, Are you seeing anything if you turn on WP debugging? define('WP_DEBUG', true); if (WP_DEBUG) { define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', true); @ini_set('display_errors', 0); } Also, who is your webhost? — |
|
|
Notice: Undefined index: HTTP_MOD_REWRITE in /home/createva/public_html/wp-content/plugins/event-espresso-requirements-check/espresso_requirements_check.php on line 144 This notice pops up all over the place. The other notices don’t seem relevant. As far as hosting goes, we manage our own servers. |
|
Do you have the espresso requirements plugin activated? It’s really only supposed to be activated, checked, and then deactivated. |
|
I’ve deactivated that plugin now, the apache error log doesn’t contain anything interesting. PHP Error log has this (these two lines for each transaction): Espresso’s log file has this (I didn’t know which parts to keep so I put the whole thing in there.. its long I know) Any ideas? |
|
The line 77 is the session_start() call in EE, but it shouldn’t have already sent headers at that point. It indicates some unexpected output. If you deactivate all of the non-EE plugins and switch to the 2014 theme, are you still getting the same error? |
|
Is there any other way to find out where other headers might be originating from? Disabling the theme/plugins isn’t really an option as this isn’t a development site, this site has been live and working fine for several months. |
|
Furthermore, according the logs this error has been happening for several months, while the issue with the payment processing has only started very recently. |
|
Any ideas here? |
|
The only payment that occurred after you turned on the full logging was for Oldenburg, Sam. The request comes in at 54:41 and it goes to the template file by 54:42. Do you have any more log entries for payment page loads since then? Search for “Payment for:” and look for entries after 2014-05-30. It would help to be able to see where in the entry the delay is coming from. |
|
All payments that have been made after error logging should have been from Sam now. All payments now in the log say the same thing, and that the payment_overview.php file is loaded within a second or two of submitting the payment. I did another short test by timing when I exactly clicked the submit payment button, and the error log claims that the payment_overview.php file was loaded only 10 seconds later, however my page kept loading for an additional 3.5 minutes. |
|
I wonder if the additional time is coming before or after the event espresso log entries. I would try having a second tab open on the event registration page, and use a submission there as a marker in the log. As soon as it’s page loads, switch to the tab with the payment page ready to submit, submit it, and when it finally goes through, switch back to the other tab and resubmit it. That way in the log, you’ll have the payment page entry sandwitched between the two registration form submissions.<br> |
|
Its pretty much garaunteed to be coming after the event espresso log entries. My test earlier today was exactly as follows: I did your test as suggested anyway and here are the relevant lines in the espresso log file: |
|
Can you mirror the site onto a development server? You’re going to need to try different things like switching the theme to the default theme, deactivating other plugins, using a minimalist page template on the thank-you page, etc, in order to narrow down the problem. The only other thing I can suggest is to add some espresso logging to a function and adding that function to all the WP hooks in the page load after the shortcode execution to try to see where it is hanging up. |
|
Bah, was hoping to avoid having to do that. Either way, after several hours of copying things over I have a working test environment that we can do whatever we want with without compromising the live site. http://test.createvalue.org/ I tried again without changing the theme and that also was hanging for a very long time The template for the thank-you page is as bare-bones as it gets. Just some confirmation text is all that gets output, not even styled actually. (http://puu.sh/9dRoV/548984aab4.png) How should I proceed? Sky’s the limit now for what I can test, though I would still like to leave updating event espresso as a last resort. |
|
I just tried updating WordPress to 3.9.1 with no results. |
We recommend running the current version of Event Espresso, why is updating a last resort? |
|
|
Another developer on our team made some changes to some core files a long time ago (well before any of these issues started occuring). I’ll check with him to see how we can update. |
Since you have this running on a test site, you could try switching out the modified version of Event Espresso core with the current version and run tests on that one. |
|
The support post ‘Payments (through Authorize.net) stalling for a very long time’ 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.