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.
| Comment | File | Size | Author |
|---|---|---|---|
| Fixed_FileSystem_class_error_with_S3FS_decorator.patch | 18.28 KB | tzatziki |
Comments
Comment #2
tzatziki commentedComment #3
rajan kumar@2026 commented@tzatziki , cloned the issue from above mentioned version 4.0.0-alpha5. and verified locally, the issue has fixed. moving RTBC++
Comment #5
christianadamski commentedComment #6
christianadamski commentedComment #7
christianadamski commented@tzatziki I'm pretty sure I credited you, but it does not seem to take. Let's see if it just takes a moment.
Comment #8
christianadamski commented