Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I' ve configured MailSystem and HTMLMail so that my "Site-wide default MailSystemInterface class" and "HTML Mail module class"
are both "HTMLMailSystem__SmtpMailSystem".
However, if I do a cache clear or just leave the mail system settings page admin/config/system/mailsystem the HTML Mail module class reverts back to HTMLMailSystem and I cannot send mail. So long as I stay on the page or do not clear the cache its possible to send mail.
emk
Comment | File | Size | Author |
---|---|---|---|
#7 | 1248050-fix-default-class-reverting-7.patch | 548 bytes | Anonymous (not verified) |
Comments
Comment #1
pillarsdotnet CreditAttribution: pillarsdotnet commentedWorking on this -- will report back soon.
Comment #2
SolomonGifford CreditAttribution: SolomonGifford commentedany update?
Comment #3
trajedy CreditAttribution: trajedy commentedsubscribe
Comment #4
trajedy CreditAttribution: trajedy commentedprogress report?
Comment #5
kehrin CreditAttribution: kehrin commentedbump
Comment #6
kressin CreditAttribution: kressin commentedsubscribe
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedThe issue here is that when checking that classes still exist, the module automatically restores the default if it encounters a class that does not exist. "mailsystem_theme" is part of the variable that stores mailsystem settings, so when it gets to that key (whose value is never going to be a class) it restores the default.
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedEr... maybe not quite. Had this issue on multiple sites and this resolved it, but looking through the rest of the module it looks like "mailsystem_theme" should not even have ever been set within the variable holding the array of classes. So not sure when that issue was introduced.
However, I do think there needs to be some better checking done where the default is reverted in that loop.