Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events fired twice #16611

Open
vasilvestre opened this issue Jul 19, 2024 · 0 comments
Open

Events fired twice #16611

vasilvestre opened this issue Jul 19, 2024 · 0 comments

Comments

@vasilvestre
Copy link
Contributor

vasilvestre commented Jul 19, 2024

Sylius version affected: 1.10.0

Description
When I pay an order, sometimes the pay event is fired twice.

There's no issue about this but one blog post with this statement :

Debugging the issue was not easy, but as it turns out, somehow, the order complete event is fired twice.

https://blog.bitexpert.de/blog/sylius_avoid_sending_multiple_invoice_emails

I'm also using the invoice plugin and payum (not Stripe).

Edit : Logs show that the cancel event is also fired twice "sometimes".

Steps to reproduce

This is an issue, I have 10 classes that act on "pay" events and don't know how to secure them all.
The issue happens once every 10/15 orders. It's extremely random.

@vasilvestre vasilvestre changed the title Complete event fired twice Events fired twice Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant