Parent constructor of MimeMail plugin changed its signature

Created on 3 May 2023, about 1 year ago
Updated 2 August 2023, 11 months ago

Request object should be initialised in child constructor, if parent constructor is not being called in child plugin constructor.

Otherwise system will through warning and error.

Error: Call to a member function has() on null in Drupal\Core\Mail\Plugin\Mail\PhpMail->mail() (line 118 of /var/www/html/docroot/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php).

Warning: Attempt to read property "server" on null in Drupal\Core\Mail\Plugin\Mail\PhpMail->mail() (line 118 of /var/www/html/docroot/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php)
#0 /var/www/html/docroot/core/includes/bootstrap.inc(158): _drupal_error_handler_real(2, 'Attempt to read...', '/var/www/html/d...', 118)
#1 /var/www/html/docroot/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php(118): _drupal_error_handler(2, 'Attempt to read...', '/var/www/html/d...', 118)
#2 /var/www/html/docroot/modules/contrib/mailsystem/src/Adapter.php(50): Drupal\Core\Mail\Plugin\Mail\PhpMail->mail(Array)
#3 /var/www/html/docroot/core/lib/Drupal/Core/Mail/MailManager.php(307): Drupal\mailsystem\Adapter->mail(Array)

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Praveen Saini India

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024