Can't create second group of the first group type.

Created on 1 October 2018, almost 7 years ago
Updated 27 August 2025, 19 days ago

I'm encountering this issue with only one of my group types. The grouptype is called blog and it has a couple of fields. For whatever reason, I can only have one group of this grouptype, because when i try to create a second one, it tries to use the same UUID as the first one and errors out.

Also, I'm noticing that the main form (group_blog_add_form) for adding the new group contains placeholder content from that first group, which doesn't make sense. This is only happening with this group type. My other grouptype doesn't have the issue, and I tried creating a new blog group and it seems to work as intended.

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Barry Abrams

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States maskedjellybean Portland, OR

    I found a similar issue can occur in \Drupal\group\Entity\Form\GroupContentForm::complete, where a problematic form state is saved in private tempstore (key_value_expire table). The user cannot save the form, nor can they create another node of the same type in the same group for 7 days (at which point the problematic row is automatically deleted from key_value_expire).

    In order to permanently fix the issue, you can patch the module to move this bit of code:

    $store->delete("$store_id:step");
    $store->delete("$store_id:entity");
    

    Above this bit of code:

    $form_object->save($form, $form_state);
    

    I won't post a patch because this is technically a different issue. Plus this version of group is almost EOL anyways.

Production build 0.71.5 2024