Active
Project:
Organic Groups
Version:
7.x-2.x-dev
Component:
og.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Aug 2013 at 13:47 UTC
Updated:
15 Aug 2013 at 13:53 UTC
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 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: