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

Created on 25 June 2024, 6 months 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.71.5 2024