Enabling this module with invite 7.x-2.1-beta2 generates the following error on all pages containing an invite block:

EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityMetadataWrapper->set() (line 122 of /sites/all/modules/entity/includes/entity.wrapper.inc).

Comments

grasmash’s picture

I am using OG 7.x-2.x, that may be causing the problem.

killerpoke’s picture

i'l check this

grasmash’s picture

Let me know if you're interested in releasing this as a module. I've made some modifications to make it compatible with 7.x-2.x, but I've also removed the permission checking (since it does not have bearing on my implementation).

killerpoke’s picture

hey madmatter23. The problem occures, when the group_field is not set. so I check this before calling og_get_all_group(). I will post a new issue to the og queue since og_get_all_group() isn't save to call.

I want to release this module please post your changes.
You may check out my previous commit, where I implemented settings for permission-checking.

killerpoke’s picture

Status: Active » Fixed
killerpoke’s picture

Status: Fixed » Closed (fixed)
ezeedub’s picture

Title: EntityMetadataWrapperException: Invalid data value given. » Update user access calls to new OG 7.x-2.x interface using entity type
Priority: Major » Normal
Status: Closed (fixed) » Needs review
StatusFileSize
new2.51 KB

The function signature of og_user_access() has changed in OG 7.x-2.x. The entity type must be included.

killerpoke’s picture

Status: Needs review » Closed (fixed)

Thank you for your Patch! It saved me some time.

I'v created a new Branch for OG 7.x-2.x please check it out to use it with the new OG version!