-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Order processing events defined in etc/frontend/events.xml won't work in production mode, works in development mode #35680
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
Comments
Hi @qsolutions-pl. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
I'll just leave a note so the issue is not closed by stale-bot |
Hi @engcom-November. Thank you for working on this issue.
|
Hi @qsolutions-pl , Thank you. |
Hi @qsolutions-pl , |
I'm a bit late to the party, but it's expected. Move your events.xml to the webapi_rest area described here: |
Preconditions and environment
Steps to reproduce
etc/frontend/events.xml
and add an observeror any event related to order processing / getting order data
Expected result
I can see the logged information in the log files
Actual result
Event is not fired at all, it is missed.
Additional information
This only happens in production mode, works fine in dev mode.
Moving events to
etc/events.xml
solves the problem, but I want my observer to work ONLY on the frontend part.Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: