Source: Clean Drupal 7.15 and OG 7.x-2.x installlation.
Description: This error causes Drupal to display:

Error: The website encountered an unexpected error. Please try again later.

EntityMetadataWrapperException: Missing data values. in EntityMetadataWrapper->value() (line 83 of /var/www/test/drupal-7.15/sites/all/modules/entity/includes/entity.wrapper.inc).

Replication:
- Create a new content type as a group
- Create a new content type as a group content and give default group audience to upper created group type
- Create a group node
- Create a group content and link it (group audience) with upper group node
- Delete the group (parent)
- Visit group content node (child)
- Drupal dies with error above

CommentFileSizeAuthor
#3 1795718-og-ui-formatter-3.patch848 bytesamitaibu
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

amitaibu’s picture

I don't understand the scenario, screenshots would be helpful.

alesr’s picture

Functionally I tried to do the same thing as Kirpaul in this task http://drupal.org/node/1795828
Long story short... if I remove the group content's parent group and try to visit this orphan content then, I get the error from above.

amitaibu’s picture

Status: Active » Needs review
FileSize
848 bytes
amitaibu’s picture

Title: EntityMetadataWrapperException: Missing data values. in EntityMetadataWrapper->value() » WSOD when og_ui_field_formatter_view() is called on orphaned group-content

better title

alesr’s picture

Status: Needs review » Reviewed & tested by the community

Patch from #3 works and fixes the problem for me.

amitaibu’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

Status: Fixed » Closed (fixed)

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