Database Type error for Drupal 9.4.8 (using MySQL)

Created on 13 November 2022, about 2 years ago
Updated 21 February 2023, almost 2 years ago

Problem/Motivation

Trying to use this module I get this error:
TypeError: Drupal\unmanaged_files\UnmanagedFilesManager::__construct(): Argument #1 ($database) must be of type Drupal\Core\Database\Driver\mysql\Connection, Drupal\mysql\Driver\Database\mysql\Connection given, called in /home/drupalop/donaldgoergen/core/lib/Drupal/Component/DependencyInjection/Container.php on line 262 in Drupal\unmanaged_files\UnmanagedFilesManager->__construct() (line 52 of /home/drupalop/donaldgoergen/modules/contrib/unmanaged_files/src/UnmanagedFilesManager.php)

Steps to reproduce

MySQL 8.0.28 (Ubuntu), Drupal 9.4.8, PHP 8.0.12, Apache web server

Proposed resolution

Looking online I see several other modules that have a similar error and seem to conclude "old code: need to do this check differently now".

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States scottop

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