I get the below error when i try to create the group node. I have created organic group content type using features.

EntityMetadataWrapperException: Unknown data property og_membership. in EntityStructureWrapper->getPropertyInfo() (line 339 of /var/www/drupal7/sites/all/modules/entity/includes/entity.wrapper.inc).

My feature package includes - a group content type, a view and a context.

CommentFileSizeAuthor
#6 Error | sye-ticket.es_.jpg25.32 KBpepe_jd

Comments

amitaibu’s picture

Status: Active » Postponed (maintainer needs more info)

I'll need more info to be able to reproduce.

chhavik’s picture

Status: Postponed (maintainer needs more info) » Active

Feature Bundle includes:-

1) A content type :- Project (Group type)

2) Content type :- Project Updates (Group Content type)

3) Context :- Project (contains a view block 'Project Listing')

4) A view :- Projects Listing (Display all the project updates related to a project)

5) All the fields related to the above 2 content types also get attached to the feature. Other than these fields, i also added field 'og_membership-og_membership_type_default-og_membership_request' to the Fields section of feature.

When i enable this feature on any fresh d7 installation and try to create Project node which is a group type, i get the above error. Thus, i am unable to create project nodes and proceed further.

amitaibu’s picture

Just to make sure -- you are using the stable 1.3 as indicated in the version?

chhavik’s picture

Yes. I am using the recommended version only.

nils.destoop’s picture

I'm getting the same error.

The error occures when i'm editing a node (as admin) that is authored by another user. When i change the author to admin, everything works.

pepe_jd’s picture

StatusFileSize
new25.32 KB

I get the same error when I try to create the first group node and determinig an existing node as a group also.

pepe_jd’s picture

I've noticed that it could be a problem with "Universally Unique ID" module. If I uninstall that module, everithing works fine.

seanenroute’s picture

Oddly enough unistalling UUID worked for me as well.

jason@greengeckodesign.com’s picture

I am getting this error but do not have the UUID module installed.

spencerfromsc’s picture

I can also confirm this error. I had the Deploy module installed and got the same error, then backed out that installation all the way through UUID, after which it was finally resolved.

torpy’s picture

Upgrading to the dev version of UUID fixed it for me.

jimthunderbird’s picture

I encounter the same issue, disabling UUID fixed it for me too.

geek-merlin’s picture

WOW, suffering from this too, and it looks like some hook_property_info_alter() is really f***ed up.

$info = module_invoke_all('entity_property_info');
dsm($info);
// this looks fine
drupal_alter('entity_property_info', $info);
dsm($info);
// this is totally damaged, 

so checking

dsm(module_implements('entity_property_info_alter'));
// entity uuid

and yes, UUID is the offending guy:

$info = module_invoke_all('entity_property_info');
dsm($info);
// OK
entity_entity_property_info_alter($info);
dsm($info);
// OK
uuid_entity_property_info_alter($info);
dsm($info);
// damaged

which is no wonder due to this line in current stable release uuid-7.x-1.0-alpha3: (look at $info)

function uuid_entity_property_info_alter(&$info) {
  foreach (entity_get_info() as $entity_type => $info) {

this is fixed in current UUID dev, so made issue #1663390: Roll a new UUID stable release

warmth’s picture

I'm having the same issue when I try to create a bunch of test users with the dev tool... assigning a Profile2 related role to each group.

jide’s picture

Same error with message module.

cyberjay’s picture

Yes, with the message module, the simple fix to this error message is to disable "Message OG example" module. I don't use any of the example modules anyway; not sure what folks use them for but so far, they've done me more harm than good. :)

warmth’s picture

OG example is disabled and still having the same issue.

lias’s picture

Experiencing this problem with Entity API 7x-1 and OG 7x-2.1. Posted problem here:

http://drupal.org/node/1519884#comment-7236252

csuggs4’s picture

I was experiencing a similar problem, and it ended up being a result of improperly including js and css files in a custom module.

Argus’s picture

Even the 7.x-2.2 version is capable of producing this error.

EntityMetadataWrapperException: Unknown data property group_group. in EntityStructureWrapper->getPropertyInfo() (line 339 of ../sites/drupal-7.22/sites/all/modules/entity/includes/entity.wrapper.inc).

This happens after changing the group machine name before clearing cache.

craicerjack’s picture

#20 was my issue - everything seems fine now after flushing the cache. (I had altered machine name)