Posted: May 10, 2014 at 8:03 am
|
I am in testing mode (using authorize.net) and every time i run a sample transaction, it takes 20 seconds or more to complete the transaction after user has clicked “complete transaction”. The notification emails come back fine, etc. However, This concerns me, as there is no visual feedback for the viewer during this 20 seconds of latency- and most likely they will click the submit button multiple times while is still submitting complicating things. I have contacted my hosting company (media temple) and they tested the site and said everything is optimized and running efficiently (DB and php). What can i do to speed up the payment process. I have been using EE for 3+ years and haven’t had this problem before. I recently upgraded to the latest EE version 3. thanks for any assistance! |
|
Hi Jomo, I assume you’re using AIM? As the software needs to communicate with the Authorize.net server there is a possibility it will be slow, depending on connection speed. That being said, all my tests have had a 4-5 second response time. Is it possible to see your test event? I will raise a feature request to add in a loading icon or similar visual notification. |
|
yes I am using AIM – can I send you a pm with the URL to test? |
|
Hi Jomo, Send it via email please, support@eventespresso.com and include a link to this forum post as well. |
|
Ok – sent. Can you also do a transaction with multiple tickets as well – seems like if you do either 1 ticket or multiple ticket transaction it still takes a good deal of time to do the transaction. thanks! |
|
Hi, Thanks for the details. I ran a test on your site and it somewhere in between both our times, at approx 11 seconds. There are no errors or obvious issues with the page, so currently it seems to simply be a slow connection. Basic pings to Authorize.net are taking 8000ms (for me at least). Currently the best advise I can provide to at least notify your customers would be to put a notice advising them to wait patiently after clicking. |
|
thank you, – which php file do i need to add that notification text? – ideally above the submit button. Also, is there anything I can ask my hosting company to check specifically? thanks for your assistance! |
|
Hey Jomo, Probably the easiest way is to copy the aim directory from event-espresso/gateways over to wp-content/uploads/espresso/gateways. Then edit wp-content/uploads/espresso/gateways/aim/aim_vars.php and add in something like: <p>Please only click the submit button once, and wait for the new page to load</p> or words to that effect, at approximately line 113 (near the bottom) just above the submit button.
Honestly, I’m not sure. I don’t really think there is much that can be done, especially if it’s a connection issue. Have you changed host recently? |
|
same hosts for last 10 years (Media Temple) -no change – other than had to upgrade to the latest 3v of EE. |
|
Hey, I looked through the plugin’s changelog and we haven’t done much work to the gateways recently, and absolutely nothing in respect to Authorize.net so I’m not seeing how the update could affect it (though with code you just never know!). |
|
Transactions are now about 25-27 seconds – i hate to keep bugging about this – but i need to figure out what is going on to speed up this process – My hosting company says everything is running find and optimized on the backbend DB/php -I contacted authorize.net and they said “Basically, this means that of those 20-30 seconds, 2-3 seconds is the process of the shopping card communicating to Authorize.Net. The rest of the time, it is your shopping cart causing the delay.” Also – It seems like i get the email notifications way before the page actually updates to the “success” page. So i don’t know where the latency is coming from. Is it a specific query that could be effecting things? I have test mode set in authorize.net payment settings – does this actually go out to authorize.net or does EE flag it before so and mark it as a “test’ transaction? Has anybody ever experienced this? i am already in this a ton of hours just troubleshooting this simple thing – everything else works great. thanks! |
Hello, We haven’t received any other reports of this long delay. Do you have an alternate WordPress site with this host or another host that you could setup a basic event on and test? — |
|
|
I will have to set up another instance if site on different host to test- which I really don’t want to do since this has been running fine last few years. But I will if that is last resort. I am still trying to figure out what is going on behind the scenes. Is there any clues to the fact that I get my email notifications of successful transactions way before the success screen shows up. For instance, during the 26 seconds of waiting for the success screen – I get the email confirmations 10 seconds after I press submit. I have a max of 4000 attendees set with a max of 4 people in a group per transaction. Could there be something with DNS? I do have force https plugin and working for your suggested pages. |
Usually Chrome dev tools will show you what’s potentially causing a page to slow down. The other thing to check would be the PHP error log on the server to see if there are any errors being thrown.
You can also install the Debug Objects plugin and view all the queries (and almost everything else) going in behind the scenes while the page loads.
It does go out to authorize.net and tells them that this is a test transaction, so no actual money gets transferred when it’s in test mode. |
|
|
Thanks Josh – i ran the Debug Ojects plugin and got the following: NOTICE: wp-content/plugins/wordpress-https/lib/WordPressHTTPS/Url.php:501 – Undefined index: user |
Hi Jomo, I do not think that some undefined index notices from your https plugin are slowing the page down. Since you asked about the queries running on the page, I suggested checking out the debug objects plugin, which should give you information about the queries running on the page. |
|
|
OK. I got that info from the debug objects plugin. I guess I just need some guidance on what to activate in that plugin (Assuming queries)and what I should be looking for specifically? Also – do I need to do a test transaction so the plugin sees they queries etc? |
Yes, you’ll want to replicate the steps while troubleshooting. |
|
|
Ok as far as error logs – i get only (2)- not sure it is related at all: [Sat May 24 04:27:00 2014] [error] [client xxxxx] ModSecurity: Warning. Match of “rx ^POST$” against “REQUEST_METHOD” required. [file “/etc/apache2/mod_security/custom/wpbrute.conf”] [line “6”] … [Sat May 24 04:27:01 2014] [error] [client xxxxx] ModSecurity: Warning. Match of “rx ^POST$” against “REQUEST_METHOD” required. [file “/etc/apache2/mod_security/custom/wpbrute.conf”] [line “11”] … as far as using the debug objects plugin – i ran a sample transaction in a new tab (25 seconds to process) and went back to my admin and see i get a ton of feedback under Db queries, plugin db quires, wp-content db queries, – however i have no clue what i am looking for specifically – where i can isolate this 20-25 lag time? Which tab in debug objects should i be focusing on? and do i have to keep doing transactions over and over to get the latest debug info? I appreciate your continued help on this issue. |
|
It is also taking about 10-12 seconds for the cart to load once you click the initial purchase ticket link. The spinner graphic spins and them final the shopping cart table appears. In years past this has been much quicker. We are opening ticket sales June 2 – so hopefully I can get this resolved by then. 25 seconds+ is definitely a bit long to get any feedback after you click purchase – and scares me if we are having a flood of transactions at the same time. |
Hi there, It may help to run some tests with the default WordPress theme activate with all non – Event Espresso plugins temporarily disabled to see if that affects the page speed. |
|
|
I have updated the checkout page to leave a message for users to be patient as it is taking 25 seconds + to check out. The problem i am seeing now is that it seems to be reverting back to the original file – here is the file path i am using to edit: wp-content/uploads/espresso/gateways/aim/aim_vars.php |
|
@josh |
|
I am working with my developer colleague to help me track the root of the latency – the following is what he asking to get info from you guys. Could you help point us in the right direction with his question? — “I would ask them what logging options we have available to us. It does seem that the call to auth.net is clean. Guessing auth.net is responding fine. So, we need to log what happens when that callback comes back. I would also ask which files are involved in that callback so we don’t have to waste our time hunting it down. If we know the files, we can add our own log statements in if they don’t have anything pre-baked. That query in and of itself isn’t the issue. It shows that we are pounding the server too hard, but we need to find the cause. That query is just a result of being executed after whatever is killing us. If I run it stand alone it is like .004. We really just need them to give us some direction of how to run this down and get more detail without having to get to know their app intimately.” |
Hi Jomo, The first tool for logging I recommend is to log wp_debug to a file. This can be set up by adding:
to the wp-config.php file. What this will do is it will log all errors to a file named debug.log in the /wp-content folder. You may need to FTP in and create the debug.log file if the server’s permissions aren’t set to create files. In addition, there is Event Espresso specific logging that can be switched on. In Event Espresso 3, you go to the Event Espresso > Organization Settings and scroll down to near the end of the Advanced options section. Here you can set “Use full logging?” to Yes, then save. This will write to a log file in /wp-content/uploads/espresso/logs. |
|
|
Ok – i think we may have found our issue – it seems the conversation with the smtp server is taking 5 seconds per email to send out. Any recommendations on how i can improve this? Here is the EE log: |
We recommend using PostMarkapp or Mandrill transactional email services for this sort of thing. |
|
The support post ‘Very Slow complete purchase process’ 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.