Problem/Motivation

I get an error while updating the database.

Steps to reproduce

Update kernel version and start database update.
updated two projects, from 8.9.12 to 9.1.2
The error went away when I removed the blocks from that region.
Error:
Drupal\Core\Config\UnsupportedDataTypeConfigException: Invalid data type in config mybarrio.schema, found in file themes/custom/mybarrio/config/schema/mybarrio.schema.yml: Duplicate key "type" detected at line 158 (near "type: text"). in Drupal\Core\Config\FileStorage->read() (line 118 of /home/admin/web/project.vpoltave.net/public_html/web/core/lib/Drupal/Core/Config/FileStorage.php).

Proposed resolution

Remove duplicate, the code is repeated in the file:

    bootstrap_barrio_region_clean_footer_first:
      type: text
      label: 'Clean wrapper for Footer first region'

In file: /bootstrap_barrio/config/schema/bootstrap_barrio.schema.yml

Comments

Devoleksiy created an issue. See original summary.

Devoleksiy’s picture

Issue summary: View changes
Devoleksiy’s picture

This error appeared mainly during kernel and theme updates. Kernels from 8.8 to 9.13 and themes 4.33 to 5.1 .

The second solution to the problem:
Copy the file bootstrap_barrio.schema.yml from the latest version of the theme to your subtopic and command line 'drush cr'

hatuhay’s picture

Status: Active » Fixed

  • hatuhay committed 795f96c on 5.x
    Issue #3193396 by Devoleksiy: Error while updating core, duplicate code...

  • hatuhay committed 77e7539 on 5.5.x
    Issue #3193396 by Devoleksiy: Error while updating core, duplicate code...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.