Problem/Motivation

When using s3fs module, There is an error on config page `TypeError: Argument 7 passed to Drupal\imagick\Plugin\ImageToolkit\ImagickToolkit::__construct() must be an instance of Drupal\Core\File\FileSystem, instance of Drupal\S3fs\S3fsFileService given`

Steps to reproduce

Use s3fs module for storing the files
Go to `/admin/config/media/image-toolkit` page after installing the module
WSOD on the config page

Proposed resolution

Use FileSystemInterface instead of FileSystem in ImagickToolkit.php construct method.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#3 after.png47.35 KBlarisse
#3 before.png53.48 KBlarisse
#2 s3fs-error-3226208-2.patch1.15 KBchintan.vyas

Comments

chintan.vyas created an issue. See original summary.

chintan.vyas’s picture

StatusFileSize
new1.15 KB

Adding a patch for fixing the wsod when using s3fs as a file storage.

larisse’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new53.48 KB
new47.35 KB

The patch #2 looks good to me.

  • bceyssens committed 8f64a59 on 8.x-1.x authored by chintan.vyas
    Issue #3226208 by chintan.vyas, larisse: TypeError: Argument 7 passed to...
bceyssens’s picture

Status: Reviewed & tested by the community » Fixed

@chintan.vyas, thank you for the patch!

Status: Fixed » Closed (fixed)

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