Works on MySQL only

Created on 29 March 2022, over 2 years ago
Updated 17 January 2023, almost 2 years ago

Problem/Motivation

After installing on a PostgreSQL-based site, an exception is thrown:

TypeError: Argument 1 passed to Drupal\unmanaged_files\UnmanagedFilesManager::__construct() must be an instance of Drupal\Core\Database\Driver\mysql\Connection, instance of Drupal\Core\Database\Driver\pgsql\Connection given

Steps to reproduce

  1. Install the module on a PostgreSQL-based site
  2. Navigate to /admin/config/media/unmanaged-files
  3. The above exception is thrown.

Proposed resolution

Type-hint the relevant argument in UnmanagedFilesManager::__construct() to Drupal\Core\Database\Connection instead of Drupal\Core\Database\Driver\mysql\Connection.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

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.

No activities found.

Production build 0.71.5 2024