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
Comment #2
Devoleksiy CreditAttribution: Devoleksiy commentedComment #3
Devoleksiy CreditAttribution: Devoleksiy commentedThis 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'
Comment #4
hatuhay CreditAttribution: hatuhay commented