Enabling any Augmentor in CKEditor5 gives PHP Fatal error

Created on 28 July 2023, over 1 year ago
Updated 29 September 2023, over 1 year ago

Problem/Motivation

Warning: assert(): Schema errors: Array ( [editor.editor.id_does_not_matter:settings.plugins.augmentor_ckeditor5_augmentor.augmentors.3e5e4f85-d567-43e6-88d9-9f5aa30680b2] => missing schema ) failed in Drupal\ckeditor5\Plugin\Editor\CKEditor5->validateConfigurationForm() (line 729 of core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php).

Steps to reproduce

* On Drupal 9.5.10 with CKEditor5 enabled. Enable Augmentor and Augmentor NLPCloud. In text format config for basic_html, enable NLP Cloud Keywords and Keyphrase extraction Augmentor. Save format form. See error.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇳🇿New Zealand jonathan_hunt

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

Comments & Activities

  • Issue created by @jonathan_hunt
  • 🇨🇦Canada mandclu

    I can't enable any augmentors in Drupal 10.1.1, I suspect because PHP 8.1 is more strict about the assert failure. I have tried with both the ChatGPT Augmentor and the OpenAI GPT3 Augmentor and get identical failures, which leads me to believe that the problem is really with this module.

    AssertionError: Schema errors: Array ( [editor.editor.id_does_not_matter:settings.plugins.augmentor_ckeditor5_augmentor.augmentors.51a13834-881d-4786-9c86-1d045c4f3d84] => missing schema ) in assert() (line 733 of /var/www/html/web/core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php).

  • @mandclu opened merge request.
  • Status changed to Needs review over 1 year ago
  • 🇨🇦Canada mandclu

    The changes in the MR resolved the error for me, so I was able to save text format settings form with one or more augmentors enabled.

    • mandclu committed 024ed905 on 1.0.x
      Issue #3377601 by mandclu: Enabling any Augmentor in CKEditor5 gives PHP...
  • Status changed to Fixed over 1 year ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Status changed to Fixed over 1 year ago
  • 🇯🇵Japan eleonel Itoshima 🇯🇵
Production build 0.71.5 2024