Text transformation settings error

Created on 10 July 2024, 4 months ago
Updated 11 July 2024, 4 months ago

Problem/Motivation

Errors in dblog
Warning: Undefined array key "regex_transformation_wrapper" in Drupal\ckeditor5_plugin_pack_text_transformation\Plugin\CKEditor5Plugin\TextTransformation->buildConfigurationForm() (line 155 of /home/knowingt/ktt/web/modules/contrib/ckeditor5_plugin_pack/modules/ckeditor5_plugin_pack_text_transformation/src/Plugin/CKEditor5Plugin/TextTransformation.php)
also
Warning: foreach() argument must be of type array|object, null given in Drupal\ckeditor5_plugin_pack_text_transformation\Plugin\CKEditor5Plugin\TextTransformation->buildConfigurationForm() (line 158 of /home/knowingt/ktt/web/modules/contrib/ckeditor5_plugin_pack/modules/ckeditor5_plugin_pack_text_transformation/src/Plugin/CKEditor5Plugin/TextTransformation.php

There does not seem to be any visual indication on UI, and settings get saved OK.
On a Basic Page etc the functionality of the plugin doing the text transformations seems OK (AFAICS)

Steps to reproduce

Edit text format
enable (or disable) 'Enable Text transformation' checkbox in โ€˜plugin settingsโ€™ Text transformations tab
(regex text-area is empty)
check dblog and see above errors

Proposed resolution

add code to skip processing at this point if array key not present?

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Closed: duplicate

Version

1.1

Component

Code

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom Jons

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

Comments & Activities

Production build 0.71.5 2024