Implement hook_mail (Error: Call to a member function fromArray() on null in Drupal\symfony_mailer\MailManagerReplacement->mail())

Created on 25 June 2024, 5 days ago

Problem/Motivation

Using watchdog_mailer leads to the following error in symfony_mailer:

Error: Call to a member function fromArray() on null in Drupal\symfony_mailer\MailManagerReplacement->mail() (Zeile 89 in /web/modules/contrib/symfony_mailer/src/MailManagerReplacement.php)
#0 /web/modules/contrib/watchdog_mailer/src/Logger/WatchdogMailer.php(140): Drupal\symfony_mailer\MailManagerReplacement->mail()

As this similar issue says, the reason is that hook_mails needs to be implemented accordingly:
πŸ’¬ fromArray() on null in MailManagerReplacement->mail() Closed: works as designed

This is the root cause: ✨ Handle case where hook_mail() does not exist Active

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: cannot reproduce

Version

3.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

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

Comments & Activities

Production build 0.69.0 2024