I have a content type that belongs in a group
I created the content type
did not select a group
when I goto node/x for the node, I get the following error:

EntityMetadataWrapperException: Unknown data property og_group_ref. in EntityStructureWrapper->getPropertyInfo() (line 339 of entity/includes/entity.wrapper.inc).

Comments

amitaibu’s picture

Status: Active » Postponed (maintainer needs more info)

Is this on a clean installation?

socialnicheguru’s picture

yes.
I tried going to admin/config/og
removing the links from content types and then re-creating
no change

socialnicheguru’s picture

Status: Active » Postponed (maintainer needs more info)

This is a Drupal Commons issue

First test:
1. create a Drupal7 site with standard profile
2. enable og, og_ui - everything is fine
3. enable commons_groups
this error and the two others that I reported occur.
http://drupal.org/node/1892352
http://drupal.org/node/1892354

Second test:
because og does a bad job of deleting and uninstalling fields, I had a hard time uninstalling and re-installing with any sane, repeatable results.
I tried http://drupal.org/node/1511894#comment-6061282
"delete from field_config_instance where field_name like '%og_%'; "

but even the above did not work so I had to delete the site and start again to retest.

Groups
go back and create a new group type
enable og, og_ui
assign the group type to organic groups
create the group type at node/add
all is fine

Users
take a look at admin/config/people/accounts/fields
og_node_user is there automatically
I can goto user/$uid/edit without a problem
all is fine in the world

now enable commons_groups and error occurs again

socialnicheguru’s picture

Project: Organic Groups » Drupal Commons
Version: 7.x-2.x-dev »
Component: og.module » Groups
Status: Postponed (maintainer needs more info) » Active

modules enabled:
strongarm was enabled successfully. [ok]
commons_body was enabled successfully. [ok]
commons_groups was enabled successfully. [ok]
entityreference_prepopulate was enabled successfully. [ok]
views_content was enabled successfully. [ok]
views_load_more was enabled successfully. [ok]
features was enabled successfully.
libraries was enabled successfully.
ctools was enabled successfully. [ok]
entity was enabled successfully. [ok]
entityreference was enabled successfully. [ok]
og was enabled successfully. [ok]
og_ui was enabled successfully. [ok]
views_bulk_operations was enabled successfully. [ok]
views was enabled successfully. [ok]

socialnicheguru’s picture

Status: Postponed (maintainer needs more info) » Needs review

EDIT:
upgraded to the 1.21.13 version of entity seemed to have solved it

Original post
ok. In order to get commons_groups to work I had to edit the .info file

; these fields are already defined by og
; I believe defining them here causes major conflict with the og module itself
;features[field_base][] = group_group
;features[field_base][] = og_group_ref
;features[field_base][] = og_membership_request
;features[field_base][] = og_user_group_ref

because you have the following variable set I don't think you need either of the following 'field_instances'
features[variable][] = field_bundle_settings_node__group

you don't need this:
;features[field_instance][] = node-group-group_group
;features[field_instance][] = og_membership-og_membership_type_default-og_membership_request

ezra-g’s picture

Status: Needs review » Fixed

Marking as fixed per the edit in #5:

EDIT:
upgraded to the 1.21.13 version of entity seemed to have solved it

Status: Fixed » Closed (fixed)

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

sunkathirs’s picture

Version: » 7.x-3.0

I am also getting same error, anyone can help me please, how to solve this issue.