Problem/Motivation
PHP Warning: Attempt to read property "language" on null in logging_alerts/emaillog/emaillog.module on line 152
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Attempt to read property "language" on null in logging_alerts/emaillog/emaillog.module,
line 152
Steps to reproduce
drush up with PHP 8 deprecation warnings from other modules and enable emaillog.
Proposed resolution
The expected argument for drupal_mail is a language object, not a string anyway, use the default as other code in core does.
Example:
modules/contact/contact.pages.inc:152
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3316416-2.patch | 565 bytes | joelpittet |
Comments
Comment #2
joelpittetHere's a fix from the proposed solution.
Comment #3
poker10 commentedI think this looks good and fixes the problem. Thanks!
Comment #5
poker10 commentedCommitted and pushed this, thanks!