MicromodalFieldFormatter::__construct() must be an instance of Drupal\Core\State\State fatal error after enabling Web Profiler module

Created on 21 February 2023, about 2 years ago
Updated 9 June 2023, almost 2 years ago

Problem/Motivation

When webprofiler is enabled, the module throws a fatal error:

TypeError: Argument 11 passed to Drupal\media_video_micromodal\Plugin\Field\FieldFormatter\MicromodalFieldFormatter::__construct() must be an instance of Drupal\Core\State\State, instance of Drupal\webprofiler\State\StateWrapper given, called in /var/www/html/app/web/modules/contrib/media_video_micromodal/src/Plugin/Field/FieldFormatter/MicromodalFieldFormatter.php on line 128 in Drupal\media_video_micromodal\Plugin\Field\FieldFormatter\MicromodalFieldFormatter->__construct() (line 103 of modules/contrib/media_video_micromodal/src/Plugin/Field/FieldFormatter/MicromodalFieldFormatter.php).

Steps to reproduce

Enable module, enable webprofiler module.

Proposed resolution

Website will load content without fatal error.

πŸ› Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom pobster

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