PHP error when adding a new site_entity_type because ID is too long

Created on 29 September 2023, 9 months ago

I create a new type on /admin/structure/site_setting_entity_type/add

I get this error:

When creating a new
Drupal\Core\Config\Entity\Exception\ConfigEntityIdLengthException: Attempt to create a bundle with an ID longer than 32 characters: header_cta_button_nodehiveapp_com(). in Drupal\Core\Entity\EntityBase->preSave() (line 383 of /var/www/web/core/lib/Drupal/Core/Entity/EntityBase.php).

Solution
Add a validation for the key. Key should not be longer than 32

🐛 Bug report
Status

Fixed

Version

1.20

Component

Code

Created by

🇨🇭Switzerland lukas.fischer

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

Comments & Activities

Production build 0.69.0 2024