Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I got the following error when trying to display: /user
EntityMetadataWrapperException: Unknown data property og_group_ref__og_membership. in EntityStructureWrapper->getPropertyInfo() line 339 of /***/entity/includes/entity.wrapper.inc
Entity API 7.x-1.x-dev
OG 7.x-2.0-alpha2+48-dev enabled
Drupal 7.12
Comment | File | Size | Author |
---|
Comments
Comment #1
jlyon CreditAttribution: jlyon commentedThis is fixed if you update to the latest version of entity api. From #1443152: Unknown data property gid. in EntityStructureWrapper.
Comment #3
JHeffner CreditAttribution: JHeffner commentedI'm seeing this error with Drupal 7.20 when trying to change the role of a user at /user/1357/edit
EntityMetadataWrapperException: Unknown data property og_membership. in EntityStructureWrapper->getPropertyInfo() (line 339 of /var/www/drupal7/sites/all/modules/entity/includes/entity.wrapper.inc).
Comment #4
JHeffner CreditAttribution: JHeffner commentedI'm finding it's a conflict with UUID related to this issue http://drupal.org/node/1467820
Comment #5
lias CreditAttribution: lias commentedI am getting the same error message using this version Entity API 7x-1 along with OG 7x-2
I have been posting og node content fine until this error. This is not a user entity but a node entity that has og membership in a specific group. I do not have UUID installed or the organic group example.
I did make one change before this started happening. I have a list - select list widget field in this group content and I just added an extra item to the list. I didn't add this item to the end but to the spot in the list it would sit alphabetically. Could that have caused this error?
apple|Apple
orange|Orange <--new item added alphabetically
pear|Pear
I believe this is a major issue.
Comment #6
sandipmkhairnar CreditAttribution: sandipmkhairnar commentedI am also getting same issue while publishing order.
/www/rmghtml/sites/COM/R7/sites/all/modules/contrib/entity/includes/entity.wrapper.inc).
EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityDrupalWrapper->set() (line 708 of /www/rmghtml/sites/COM/R7/sites/all/modules/contrib/entity/includes/entity.wrapper.inc)
Comment #7
oranges13I am receiving this issue as well. However, we have two servers, one which presents the issue and one that does not.
The server with the issue is running several additional modules, such as Memcache and APC.
All caches have been cleared but the problem persists.
EntityMetadataWrapperException: Unknown data property og_group_ref__og_membership. in EntityStructureWrapper->getPropertyInfo() (line 335 of /sites/all/modules/entity/includes/entity.wrapper.inc)
Entity API 7.x-1.3 and OG 2.4
Comment #8
ranroz CreditAttribution: ranroz commented@lsabug -
Can you please provide steps to reproduce this issue?
Comment #9
uschi_glas CreditAttribution: uschi_glas commented@oranges13
had the same problem. solved by clearing apc cache directly. something like this:
Comment #10
haydeniv CreditAttribution: haydeniv commentedNo new info and all the other problems are solved so back to fixed.
Comment #11
nikita.izotov CreditAttribution: nikita.izotov commentedEntityMetadataWrapperException: Unknown data property og_user_node__og_membership. in EntityStructureWrapper->getPropertyInfo() (line 335 of /profiles/openatrium/modules/contrib/entity/includes/entity.wrapper.inc).
No fixes for this issue?
Comment #12
bdupls CreditAttribution: bdupls commentedThis error appeared on a site that I have been working on for a while. I then created a new local Commons site and created a new content type and added the new content type to OG field settings. And this error appeared when I created new content. Only my error occurs on line 736
EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityDrupalWrapper->set() (line 736 of /Users/xxx/Sites/xxx/sites/all/modules/entity/includes/entity.wrapper.inc).
If I include this line on line 736 to cater for empty fields the error changes to line 335 at nikita #11 states he gets.
if (empty($node)) { return; }
People on this link are having similar problems on this site,
https://www.drupal.org/node/1925412
Comment #13
Chewie CreditAttribution: Chewie commentedSimple fix if for you not acceptable for now change version
Patch applicable for OG project
Comment #14
igorik CreditAttribution: igorik as a volunteer commentedI have this problem, but the patch #13 doesn't work for me...
EntityMetadataWrapperException: Unknown data property field_published. in EntityStructureWrapper->getPropertyInfo() (line 335 of /Users/igor/Documents/dev desktop sites/og/sites/all/modules/entity/includes/entity.wrapper.inc).
It comes when I try approve comment for the post in Organic group.
I found 2 errors in log:
type comment error
Type comment
Date Saturday, October 3, 2015 - 11:16
User admin
Location http://og.dd:8083/comment/1/approve?token=BvLHrBQdyLCHO8Xb5nlH5eCMMdz8ft...
Referrer http://og.dd:8083/node/9
Message EntityMetadataWrapperException: Unknown data property field_published. in EntityStructureWrapper->getPropertyInfo() (line 335 of /Users/igor/Documents/dev desktop sites/og/sites/all/modules/entity/includes/entity.wrapper.inc).
Severity error
Hostname 127.0.0.1
and type php error
Type php
Date Saturday, October 3, 2015 - 11:16
User admin
Location http://og.dd:8083/comment/1/approve?token=BvLHrBQdyLCHO8Xb5nlH5eCMMdz8ft...
Referrer http://og.dd:8083/node/9
Message EntityMetadataWrapperException: Unknown data property field_published. in EntityStructureWrapper->getPropertyInfo() (line 335 of /Users/igor/Documents/dev desktop sites/og/sites/all/modules/entity/includes/entity.wrapper.inc).
Severity error
Hostname 127.0.0.1
Comment #15
oranges13Igorik,
Is your site running any caching modules such as APC or MemCache? This was making the problem occur on our site. When you create a new content type, the "site" cache was not aware it existed, thus the error. You had to forcibly clean the cache to stop the error from occuring.
Comment #16
Mykola DolynskyiHi. I have same error trying to wrap the node.
It fails on field of type untityreference, but the bundle of node i wrap dont contain this field.
Comment #17
roynilanjan CreditAttribution: roynilanjan commentedPatch #13 is working with same issue! currently I'm using og veresion of 7.x-2.9. That fix is not available in this release
Fix should be the part of og.member.inc file
Comment #18
roynilanjan CreditAttribution: roynilanjan commentedComment #19
alexverb CreditAttribution: alexverb commentedPutting back to needs work. There is functionality that prevents memberships for anonymous users:
And the function below from og.module accepts both id and entity. So the proposed patch 13 will most likely break functionalities.
Putting patch to hidden and back to needs work.
Comment #20
iarc13 CreditAttribution: iarc13 as a volunteer commented#15 saved me Thanks oranges13.
I stopped and started memcache.