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.

CommentFileSizeAuthor
#2 machine-name-length-2842862-2.patch595 bytesmark_fullmer
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mark_fullmer created an issue. See original summary.

mark_fullmer’s picture

Status: Active » Needs review
FileSize
595 bytes
mark_fullmer’s picture

amateescu’s picture

Status: Needs review » Fixed

Looks great! Committed to 8.x-1.x, thanks :)

Status: Fixed » Closed (fixed)

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

drupalfan2’s picture

I still get this error! How to solve it?

amateescu’s picture

If 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.

drupalfan2’s picture

I get this error when I create the queue .... So deleting will not work.

amateescu’s picture

What version of Entityqueue are you using? You can delete the subqueue manually from the database..