Error: Call to a member function addMessage() on null

Created on 1 August 2023, over 1 year ago

Problem/Motivation

Being on any node page that applies this text filter, throws this error.

Error: Call to a member function addMessage() on null in Drupal\image_resize_filter\Plugin\Filter\FilterImageResize->getImages()

Steps to reproduce

  1. Install and enable the module
  2. Set the text filter and view any of the node page where this filter is applicable

Proposed resolution

Change $this->messenger to $this->messenger() to invoke the correct service.

๐Ÿ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia hardikpandya

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

Comments & Activities

Production build 0.71.5 2024