PHP Warning: Attempt to read property "language" on null

Created on 19 October 2022, about 2 years ago
Updated 10 April 2024, 8 months ago

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

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada joelpittet Vancouver

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024