Home › Forums › Ticket Products › Event Tickets Plus › Duplicate notification and stock retrieved more then once
- This topic has 12 replies, 2 voices, and was last updated 8 years, 6 months ago by
Israel Fontaine.
-
AuthorPosts
-
October 19, 2017 at 2:54 pm #1366193
Israel Fontaine
ParticipantWhen a client purchases a ticket, duplicate notification are sent and inventory is deducted twice.
I am wondering if the issue is not a bug with the Woocommerce option. This was our configuration: https://prnt.sc/gzjwhu
I can see on the order that the inventory is deducted twice: http://nimb.ws/H1bQe3
Looks like the system is retrieving and sending email for each statuses that are checked whereas it should be the first events that should trigger the ticket and the notification.
For now I have only checked “Processing” and I hope it can solve the issue while I wait for your input on this issue.
Thanks for your help 🙂
October 20, 2017 at 8:41 pm #1366949Israel Fontaine
ParticipantAnyone to help?
October 21, 2017 at 5:59 am #1367045Andras
KeymasterHello Israel,
I’m sorry for the long waiting time, we are experiencing a higher than usual load in our forums. We are trying to get to every thread as fast as we can. Thanks for your patience so far.
I’m sorry about the issue you are experiencing. Let’s try to solve this mystery.
I just ran a test with the same settings and all worked fine for me.
What payment gateway are you using?
Can you set up a regular WooCommerce product and run a test with that? Check if the inventory gets changed twice there as well.
It would also be great if you could go through our conflict testing guide. Basically what you would need to do is deactivate all plugins except for the Modern Tribe ones and WooCommerce and test if you get the same results.
I’ll be waiting to hear what you find. Looking forward to helping you fix this.
Cheers,
AndrasOctober 23, 2017 at 1:26 pm #1367727Israel Fontaine
ParticipantHello Andras,
Thanks for your help.
1) We use only Paypal as payment gateway through Woocommerce
2) I’m not able to replicate the issue either, my client see notices it from time to time when people buy event ticket…. so this is thus an intermittent issue.
Actually I’m thinking about two potentials causes:
2a) Free Cloudflare version, which I have removed
2b) Fastest cache issue, I have deactivated for now
2c) Customers trying to refresh the page while purchasing ??? It’s quite fast… I don’t see any issue with waiting time that would cause someone to think of refreshing the page.
I’ll check if my issue is solved with Cloudflare and Fastest cache deactivated, would you have any other idea of what would cause such an intermittent issue ?
Thanks
October 24, 2017 at 3:00 am #1367940Andras
KeymasterHi Israel,
Nothing else comes to my mind at the moment. The steps you are trying is what I would have recommended as a first step as well.
If that doesn’t change the outcome then going through our conflict testing guide might be a good idea.
Let me know how it plays out and we’ll dig deeper if needed.
Cheers,
AndrasOctober 24, 2017 at 6:36 am #1368025Israel Fontaine
ParticipantHi Andras,
It seems to have happen again but for one order yesterday, I don’t know if this would be link to propagation issue or not… let’s hope so.
Meanwhile I’m unable to look at the debug information from Events Calendar, when I try to get to Events Calendar > Help, I’m getting a blank page with this error
mod_fcgid: stderr: PHP Fatal error: Uncaught RuntimeException: SplFileInfo::isReadable(): open_basedir restriction in effect. File(/tmp/..) is not within the allowed path(s): (/var/www/vhosts/festivalarabe.com/:/tmp/) in /var/www/vhosts/festivalarabe.com/httpdocs/wp-content/plugins/event-tickets/common/src/Tribe/Log/File_Logger.php:239, referer: http://festivalarabe.com/wp-admin/edit.php?page=tribe-common&tab=defaults&post_type=tribe_events
I do have a /tmp/ in the WordPress Folder with 777 permission: http://nimb.ws/ZkvhuE
Could you point me to a solution please ?
Thanks
October 24, 2017 at 7:11 am #1368051Israel Fontaine
ParticipantConcerning my last reply… we fixed the issue by setting opendir to “none” in our PHP settings in Plesk: https://prnt.sc/h1eg2c
October 24, 2017 at 7:55 am #1368066Israel Fontaine
ParticipantHi Andras,
Yeah… that’s a lot of back and forth but I have noticed something and you may be able point me toward a solution.
When inventory is taken twice, I do have also an order status duplicate: Order status changed from Pending payment to Processing.
Screeenshot: https://s.nimbus.everhelper.me/share/1196827/mlav2n1u7migf9q3pk2t
So it looks like it’s an issue between WooCommerce and Paypal. But it seems to be a known and fixed bug: https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/issues/261
Any hint for me ?
October 25, 2017 at 5:33 am #1368571Israel Fontaine
ParticipantI’m back!
Looks like you folks are quite busy these days!
I believe we found a way to eliminate the issue and I’m sure I’m not the only one in this situation. WooCommerce stock reducing twice seems due to a conflict with both type communication used by Paypal (PDT & IPN), When the issue happen we could noticed in our Paypal log that Paypal was sending first the IPN confirmation and then the PDT confirmation which make the inventory to be reduced twice. Looks like having both configured is the caused of duplicate stock reducing in WooCommerce: https://www.paypal-knowledge.com/infocenter/index?page=content&id=FAQ1142&actp=RSS
To solve the issue: Clear the PayPal Identity Token field in the PayPal gateway settings (WooCommerce->Settings->Checkout->PayPal).
Discussion about this bug on GitHub: https://github.com/woocommerce/woocommerce/issues/13963
October 26, 2017 at 3:54 am #1369060Andras
KeymasterHi Israel,
Sorry to keep you waiting. Indeed, the forums are more busy at the moment and we try to do our best to get a reply to every thread within 24 hours, including the started ones. Thanks for your patience!
I’m stoked to hear that you managed to find the source of the issue. Thanks for sharing all the details and the solution. I’m quite sure this will be helpful for others as well.
Is there anything else I can help you with?
Cheers,
AndrasOctober 26, 2017 at 7:39 am #1369178Israel Fontaine
ParticipantThanks Andras,
As for now the solution really did solve our issue. We don’t have anymore duplicate retrieving of our inventory.
October 27, 2017 at 3:35 am #1369926Andras
KeymasterHappy to hear your site works now as intended! Good job on that one!
Since this is marked resolved I am going to close this ticket, but if you need anything else related to this topic or another please create a new ticket and we’ll be happy to help.
Cheers,
AndrasPS: If you like our plugins, and you didn’t yet do so 🙂 we would be happy to receive a review in the wordpress.org repository. Thanks!
https://wordpress.org/support/view/plugin-reviews/the-events-calendar/
https://wordpress.org/support/view/plugin-reviews/event-tickets/PS2: We’d be also grateful if you would give us feedback on your satisfaction with support. Just click on one of the classy looking emojis below. 🙂 If you can spare a few words, that’s even better. Doublethanks!
-
AuthorPosts
- The topic ‘Duplicate notification and stock retrieved more then once’ is closed to new replies.
