fatal error: Undefined array key "image_styles"

Created on 23 January 2025, 4 months ago

Problem/Motivation

on editing content, receive fatal error.

Steps to reproduce

edit a node
receive this:
Undefined array key "image_styles" and WSOD
and
ArgumentCountError: Too few arguments to function Drupal\image\Controller\ImageStyleDownloadController::deliver()

Proposed resolution

in /inline_responsive_images/src/Plugin/CKEditor5Plugin/ResponsiveImageStyle.php line 30 add

    if (!empty($filter_config['settings']['image_styles'])) {
      $image_styles = array_keys(array_filter($filter_config['settings']['image_styles']));
    }
    else {
      $image_styles = [];
    }
๐Ÿ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ชIreland anthonylindsay

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024