SVG Responsive image Logger

Created on 4 December 2020, over 3 years ago
Updated 5 June 2024, 23 days 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.69.0 2024