"Email the customer a receipt when an order is placed" checkbox on order type, causes infinite loop on send order receipt mail subscriber

Created on 1 February 2024, 10 months ago
Updated 2 February 2024, 10 months ago

I have done an upgrade on drupal commerce site from 9.5.11 to 10.2.2

After the upgrade, I have encountered an issue where the email receipts on order complete were sent in an infinite loop until max timeout.

After a couple of hours of debugging, I have found that the core of the problem is not a custom presave hook that I have written, or something like that. It is but a commerce core bug, where if "Email the customer a receipt when an order is placed" checkbox on order type was checked,

Unfortunately, I cannot provide more info, than this, except that when I turn on the debugger the commerce MailHandler gets caught in an infinite loop, which trigger the OrderReceiptSubscriber

🐛 Bug report
Status

Closed: cannot reproduce

Version

3.0

Component

Checkout

Created by

🇷🇸Serbia darko_antunovic

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024