Undefined array key "max_size" when using the format "flexible_html"

Created on 26 August 2025, 18 days ago

Problem/Motivation

When i visit a block to edit or go to a format configuration page we get the following warning.

Warning: Undefined array key "max_size" in Drupal\ckeditor_uploadimage\Plugin\CKEditorPlugin\DrupalUploadImage->getConfig() (line 92 of profiles/contrib/openfed/modules/d10_compatibility/ckeditor_uploadimage/src/Plugin/CKEditorPlugin/DrupalUploadImage.php).

The issue is caused because the plugin is not enabled and core remove the configuration from the yml file on export.

Steps to reproduce

  • Go to /admin/config/content/formats/manage/flexible_html
  • Go to /admin/content/block/

Proposed resolution

Add extra checks to see if the setting is defined.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium p-neyens

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

Comments & Activities

Production build 0.71.5 2024