Closed (fixed)
Project:
Drupal Commons
Version:
7.x-3.0
Component:
Groups
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2013 at 15:17 UTC
Updated:
8 Jun 2013 at 11:50 UTC
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
Comment #1
amitaibuIs this on a clean installation?
Comment #2
socialnicheguru commentedyes.
I tried going to admin/config/og
removing the links from content types and then re-creating
no change
Comment #3
socialnicheguru commentedThis 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
Comment #4
socialnicheguru commentedmodules 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]
Comment #5
socialnicheguru commentedEDIT:
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
Comment #6
ezra-g commentedMarking as fixed per the edit in #5:
Comment #8
sunkathirs commentedI am also getting same error, anyone can help me please, how to solve this issue.