Duplicate notification and stock retrieved more then once

Home Forums Ticket Products Event Tickets Plus Duplicate notification and stock retrieved more then once

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1366193
    Israel Fontaine
    Participant

    When 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 🙂

    #1366949
    Israel Fontaine
    Participant

    Anyone to help?

    #1367045
    Andras
    Keymaster

    Hello 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,
    Andras

    #1367727
    Israel Fontaine
    Participant

    Hello 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

    #1367940
    Andras
    Keymaster

    Hi 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,
    Andras

    #1368025
    Israel Fontaine
    Participant

    Hi 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

    #1368051
    Israel Fontaine
    Participant

    Concerning my last reply… we fixed the issue by setting opendir to “none” in our PHP settings in Plesk: https://prnt.sc/h1eg2c

    #1368066
    Israel Fontaine
    Participant

    Hi 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 ?

    #1368571
    Israel Fontaine
    Participant

    I’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

    #1369060
    Andras
    Keymaster

    Hi 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,
    Andras

    #1369178
    Israel Fontaine
    Participant

    Thanks Andras,

    As for now the solution really did solve our issue. We don’t have anymore duplicate retrieving of our inventory.

    #1369926
    Andras
    Keymaster

    Happy 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,
    Andras

    PS: 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!

     

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Duplicate notification and stock retrieved more then once’ is closed to new replies.