1

I am using Drupal commons for a community social network. I am trying to create a second group based on a content type named Leagues. In order to create that group I went to: /admin/structure/types/add, gave the group a name and selected the group check box (as the example given on this page: https://www.drupal.org/node/2014777).

But for some reason every time I try to create a new league and save it, I get this error:

EntityMetadataWrapperException: Unknown data property field_og_subscribe_settings. in EntityStructureWrapper->getPropertyInfo() (line 335 of /home2/jane/public_html/devpage/profiles/commons/modules/contrib/entity/includes/entity.wrapper.inc).

It seems that the field field_og_subscribe_settings is attached to the content type group which I am not exactly sure what it means, but it seems I can´t create more than one group based on a content type.

  • Hello and welcome. We provide answers, not "guidance" etc, so please ask your question in a way that makes perfectly clear what you are asking. For example "what should I do to create ... groups based on ... when ...?" – Mołot Nov 4 '14 at 15:07
  • Cool, I will keep that in mind for my next question. – gjanet83 Nov 4 '14 at 17:17
1

It seems this solves your issue : EntityMetadataWrapperException

You probably need to add field_og_subscribe_settings field to your new content group type, and make it required.

You can take a look at

/admin/structure/types/manage/group/fields/field_og_subscribe_settings

to see how it's been configured for the default group content type.

Refer this link for detailed details about this issue: EntityMetadataWrapperException errors due to features not being reverted

  • Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Mołot Nov 4 '14 at 15:06
  • Thank you guys for your quick response. I tried adding the field_og_subscribe_settings to my new group but it seems I can´t duplicate that field since the default group content type already has it.... I wonder how the guy from the Drupal forum did it.... – gjanet83 Nov 4 '14 at 15:11
  • follow the same procedure and add group access field – Pravin Ajaaz Nov 4 '14 at 15:16
  • ok, I am doing it again, be back in 10 mins. Thanks – gjanet83 Nov 4 '14 at 15:20
  • OK, I got it!. I added the new existing field and now everything is working. Thank you Pravin!!! – gjanet83 Nov 4 '14 at 17:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.