`label` key contains a string. It must be an array

Created on 22 June 2024, 5 months ago
Updated 8 August 2024, 4 months ago

Problem/Motivation

This module breaks Drupal 10.3.

Steps to reproduce

composer update from 10.2.3 to 10.3
drush updb

Show the error:

> [notice] Update started: editor_post_update_sanitize_image_upload_settings
> [error] The mapping definition at `editor.editor.full_html.settings.plugins.ckeditor5_list:properties` is invalid: its `label` key contains a string. It must be an array.
> [error] Update failed: editor_post_update_sanitize_image_upload_settings
[error] Update aborted by: editor_post_update_sanitize_image_upload_settings
[error] Finished performing updates.

I also have the Schema patch for this module.

Only when unnistall this module, I was able to run drush updb.

If try to install the module again I get:

> In Mapping.php line 38:
>
> The mapping definition at `editor.editor.basic_html.settings.plugins.ckedit
> or5_list:properties` is invalid: its `label` key contains a string. It must
> be an array.
>
>

In ProcessBase.php line 155:

Output is empty.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

Version

1.1

Component

Code

Created by

🇵🇹Portugal adaragao

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

Merge Requests

Comments & Activities

  • Issue created by @adaragao
  • 🇨🇾Cyprus EliasPapa

    Same issue here after Drupal updates.

  • 🇮🇳India chippyjacob

    I am also getting this issue after upgrade to 10.3 from 10.2.7.

  • First commit to issue fork.
  • Merge request !8Update ckeditor5.schema.yml → (Open) created by imran1217
  • 🇺🇸United States imran1217

    I have created MR by combining issue #3368736 changes here, and using this MR as patch everything is working fine.

    "drupal/ckeditor5_font": {
                    "3368736 - 'no config schema' Error": "https://git.drupalcode.org/project/ckeditor5_font/-/merge_requests/8.patch",
                    "3350333 - TypeError: array_filter(): Argument #1 ($array) must be of type array": "https://www.drupal.org/files/issues/2023-04-21/3350333-5.patch"
                }
    
  • Status changed to Needs review 5 months ago
  • 🇧🇷Brazil renatog Campinas
  • Thanks @imran1217!
    For me, this combination works for Drupal 10.3.1:

    "drupal/ckeditor5_font": {
                    "3368736 - 'no config schema' Error": "https://git.drupalcode.org/project/ckeditor5_font/-/merge_requests/8.patch",
                    "3350333 - TypeError: array_filter(): Argument #1 ($array) must be of type array": "https://www.drupal.org/files/issues/2023-04-21/3350333-5.patch"
                }
  • Status changed to Closed: duplicate 4 months ago
  • 🇫🇷France Julien Tekrane

    Thanks @imran1217 and @sergiu_

    #6 fixed the issue also for me using https://www.drupal.org/project/ckeditor5_font/issues/3368736 🐛 Error after update to Drupal 10.1.0 Active patch.

    I close this issue as Duplicate

Production build 0.71.5 2024