Problem/Motivation

Hello,
I met an issue with module S3FS 8.x-3.4 enabled and configured on a Drupal 10.2.4 project.
Indeed, it seems to decorate the FileSystem class with S3fsFileService, and when I tried to use Geolocation Map (4.0.0-alpha5), I got the following error:

TypeError: Drupal\geolocation\MapProviderBase::__construct(): Argument #6 ($fileSystem) must be of type Drupal\Core\File\FileSystem, Drupal\s3fs\S3fsFileService given

Steps to reproduce

Install and configure S3FS, install Geolocation and add a Geolocation field, try to use the widget Geolocation Map and the ajax query can not finish because of this error.

Proposed resolution

Instead of using the class FileSystem, use FileSystemInterface seems to fix the issue.
You'll find an attached patch.

Comments

tzatziki created an issue. See original summary.

tzatziki’s picture

Issue summary: View changes
rajan kumar@2026’s picture

Status: Active » Reviewed & tested by the community

@tzatziki , cloned the issue from above mentioned version 4.0.0-alpha5. and verified locally, the issue has fixed. moving RTBC++

christianadamski’s picture

christianadamski’s picture

christianadamski’s picture

@tzatziki I'm pretty sure I credited you, but it does not seem to take. Let's see if it just takes a moment.

christianadamski’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.