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.
With OG set up, I go to admin/config/development/generate/user to generate some dummy users.
The process crashes with this error:
Error message
EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7694 of includes/common.inc).
Here's a trimmed summary of the backtrace:
-user_save()
- field_attach_insert()
- entityreference_field_insert()
- OgBehaviorHandler->OgMembershipCrud()
This then calls og_group(), and the problem seems to be that the $gid parameter is a group node type, rather than as the docs say:
* @param $gid
* The group entity or ID.
Comments
Comment #1
joachim CreditAttribution: joachim commentedThe $diff at the top of OgBehaviorHandler->OgMembershipCrud() is incorrectly:
where those are the two types of node that are groups.
And that is caused by groupAudiencegetDiff() getting an $items param that looks like: