Error: Call to undefined method Drupal\remote_stream_wrapper\Entity\ImageStyle::hasPipeline() in imageapi_optimize_webp_responsive_preprocess_responsive_image()

Created on 28 August 2024, 4 months ago

Problem/Motivation

This error is triggered when ImageStyle has been overriden by other modules, like Remote Stream Wrapper does.

The same problem arose in ImageAPI Optimize module, see https://www.drupal.org/project/imageapi_optimize/issues/3327442 🐛 Image api assumes getPipeline method exists which breaks the image styles page Needs work

Steps to reproduce

Use webp pipeline where module Remote Stream Wrapper is enabled.

Proposed resolution

The same approach used in the patch https://git.drupalcode.org/project/imageapi_optimize/-/merge_requests/6/diffs

Remaining tasks

Patch coming soon.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇪🇸Spain interdruper

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

Comments & Activities

Production build 0.71.5 2024