TypeError: Argument #3 ($file_system) must be of type Drupal\Core\File\FileSystem, Drupal\s3fs\S3fsFileService given

Created on 14 February 2024, 9 months ago
Updated 23 June 2024, 5 months ago

Problem/Motivation

"TypeError: Drupal\civictheme\Settings\CivicthemeSettingsFormSectionBase::__construct(): Argument #3 ($file_system) must be of type Drupal\Core\File\FileSystem, Drupal\s3fs\S3fsFileService given"

Steps to reproduce

Enable CivicTheme on a site using the S3FS module and try to visit the Settings page.

Proposed resolution

The attached patch updates the code to use FileSystemInterface instead of FileSystem which seems to fix the problem.

🐛 Bug report
Status

Fixed

Version

1.7

Component

Code

Created by

🇺🇸United States trrroy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024