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
Magento 2.4.x error "Environment emulation nesting is not allowed" occurs while sending invoice email #36134
Comments
Hi @psydog-1101. 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 |
Hi @engcom-Delta. Thank you for working on this issue.
|
✔️ Issue confirmed Issue got reproduced in 2.4-develop branch. Description: While sending the invoice mail , mail was sent and an error is showing in the system.log file. Pre-requisite:
Steps to reproduce:
Expected result: Invoice send to customer without error Actual result: In system.log file error is generated. Screenshots:
Hence, confirming the issue. |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-6721 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Delta. Thank you for verifying the issue. |
This is probably a duplicate of #35603 which got fixed in the meanwhile, so this issue can probably be closed? |
I'm still experiencing this issue, I need to dig a bit deeper to confirm. |
Feels like it should be fixed in the 2.4.7 release, but I'm also still experiencing this issue on 2.4.6-p5 |
Preconditions and environment
Steps to reproduce
Expected result
Invoice send to customer without error
Actual result
system.log logged the error: Environment emulation nesting is not allowed.
The reason is \Magento\Sales\Model\Order\Email\Sender\InvoiceSender::send calls \Magento\Payment\Helper\Data::getInfoBlockHtml into (startEnvironmentEmulation and stopEnvironmentEmulation) scope. and \Magento\Payment\Helper\Data::getInfoBlockHtml is also declared (startEnvironmentEmulation and stopEnvironmentEmulation).
https://imgur.com/0YvQX4E
https://imgur.com/Wd3AUhQ
Additional information
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: