Argument must be an instance of Drupal\Core\Database\Driver\mysql\Connection, instance of Drupal\mysql\Driver\Database\mysql\Connection given

Created on 26 July 2022, over 2 years ago
Updated 31 May 2023, over 1 year ago

Problem/Motivation

Error on sending mail.

TypeError: Argument 4 passed to Drupal\devel_mail_logger\Plugin\Mail\DevelMailLogger::__construct() must be an instance of Drupal\Core\Database\Driver\mysql\Connection, instance of Drupal\mysql\Driver\Database\mysql\Connection given, called in /app/modules/contrib/devel_mail_logger/src/Plugin/Mail/DevelMailLogger.php on line 65 in Drupal\devel_mail_logger\Plugin\Mail\DevelMailLogger->__construct() (line 49 of /app/modules/contrib/devel_mail_logger/src/Plugin/Mail/DevelMailLogger.php)

Cause of the problem: https://www.drupal.org/node/3129492

Proposed resolution

Replacing use Drupal\Core\Database\Driver\mysql\Connection; by use Drupal\Core\Database\Connection;

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
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