Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The form for generating entityqueues does not properly validate the machine name length to 32 characters, provoking the following database error:
Drupal\Core\Config\Entity\Exception\ConfigEntityIdLengthException: Attempt to create a bundle with an ID longer than 32 characters: skjdfhak_jfhdls_kfjhadfk_sdlfkjhdsfl_kjsdfkdsflsdjh(). in Drupal\Core\Entity\Entity->preSave() (
The attached patch fixes this straightforwardly.
Comment | File | Size | Author |
---|---|---|---|
#2 | machine-name-length-2842862-2.patch | 595 bytes | mark_fullmer |
Comments
Comment #2
mark_fullmerComment #3
mark_fullmerComment #5
amateescu CreditAttribution: amateescu commentedLooks great! Committed to 8.x-1.x, thanks :)
Comment #7
drupalfan2 CreditAttribution: drupalfan2 as a volunteer commentedI still get this error! How to solve it?
Comment #8
amateescu CreditAttribution: amateescu commentedIf you're getting this error now you probably have an old queue sitting around in the database, so you can either delete and re-create it, or update its machine name manually in the database. Note that you have to edit the subqueue entity tables and also the config name for the queue config entity, so delete + re-create should be easier.
Comment #9
drupalfan2 CreditAttribution: drupalfan2 as a volunteer commentedI get this error when I create the queue .... So deleting will not work.
Comment #10
amateescu CreditAttribution: amateescu commentedWhat version of Entityqueue are you using? You can delete the subqueue manually from the database..