SVG Responsive image Logger

Created on 4 December 2020, over 4 years ago
Updated 5 June 2024, 11 months ago

Problem/Motivation

The svg_image_responsive module can't be used with monolog, and perhaps other Logger modules.

Steps to reproduce

Enable svg_image_responsive
Enable Monolog module
Go to you site

Following error occurs :

PHP message: TypeError: Argument 12 passed to Drupal\svg_image_responsive\Plugin\Field\FieldFormatter\SvgResponsiveImageFormatter::__construct() must be an instance of Drupal\svg_image_responsive\Plugin\Field\FieldFormatter\LoggerChannelInterface, instance of Drupal\monolog\Logger\Logger given

Proposed resolution

In SvgResponsiveImageFormatter, LoggerChannel should not be used in constructor parameter but LoggerChannelInterface.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇫🇷France goz

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024