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.
Problem/Motivation
PHP Fatal error: Declaration of Drupal\exception_mailer\Logger\ErrorLog::log($level, $message, array $context = []) must be compatible with Drupal\Core\Logger\RfcLoggerTrait::log($level, Stringable|string $message, array $context = []): void in /var/www/html/web/modules/contrib/exception_mailer/src/Logger/ErrorLog.php on line 116
Comment | File | Size | Author |
---|---|---|---|
#2 | 3351812.patch | 522 bytes | aherczeg |
Comments
Comment #2
aherczeg CreditAttribution: aherczeg at Brainsum commentedUpdated the function to make it compatible with Drupal\Core\Logger\RfcLoggerTrait::log
Comment #3
aherczeg CreditAttribution: aherczeg at Brainsum commentedComment #4
Kosa Ilma CreditAttribution: Kosa Ilma at Brainsum commentedI could reproduce the error on a newly installed Drupal 10.0.9.
I added the patch and the error had gone.
Comment #5
Kosa Ilma CreditAttribution: Kosa Ilma at Brainsum commentedComment #7
szato CreditAttribution: szato at Brainsum for Novozymes A/S commented