AssertionError: Schema errors: Array ( [editor.editor.id_does_not_matter:settings.plugins.ckeditor5_plugin_pack_word_count__word_count.word_count_enabled] => variable type is integer but applied schema class is Drupal\Core\TypedData\Plugin\DataType\Boolea

Created on 15 May 2024, 6 months ago
Updated 28 June 2024, 5 months ago

I activated the CKEditor 5 Word Count module.

During configuration and activation on CKEditor, I encountered this error:

"The website encountered an unexpected error. Please try again later.

AssertionError: Schema errors: Array ( [editor.editor.id_does_not_matter:settings.plugins.ckeditor5_plugin_pack_word_count__word_count.word_count_enabled] => variable type is integer but applied schema class is Drupal\Core\TypedData\Plugin\DataType\BooleanData ) in assert() (line 737 of core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php)."

ERROR

Problem: Cast integer to Boolean problem,

I was able to fix it and generate this patch:

ckeditor5-plugin-pack-word-count-fix-cast-int-to-bool.patch

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇲🇦Morocco Anouar LOUEDZIANE

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