Hello,

There is an issue with the bulk opperation when breaking user Trusted contact :

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=12&op=do StatusText: Service unavailable (with message) ResponseText: EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityDrupalWrapper->set() (line 737 of /var/www/html/commons3_30/profiles/commons/modules/contrib/entity/includes/entity.wrapper.inc).

I have investigate a little and it seems that ogmerbership->original is FALSE in commons_trusted_contacts_og_membership_update line 531 : $wrapper_original = entity_metadata_wrapper('og_membership', $og_membership->original);

CommentFileSizeAuthor
#2 trusted_removed.patch3.89 KBttournie
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ttournie created an issue. See original summary.

ttournie’s picture

FileSize
3.89 KB

A simple solution is just to test if the original entity is set befor trying to use it.

Doronro’s picture

hi,
thank you for the patch, but i still can't break contact..
i tried the patch. it stops the error, but users still cannot break contact.
any advice appreciated...
just to clarify my situation:
registered users cannot break contact. it goes through the motions, but the contact is still there at the end of it..
if an admin breaks the connection, it does break it, but also throws an error:
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=15&op=do StatusText: Service unavailable (with message) ResponseText: EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. Value at og_membership(): . in EntityDrupalWrapper->set() (line 756 of C:\Users\USER\Sites\newManag\profiles\commons\modules\contrib\entity\includes\entity.wrapper.inc).

hope this helps..
kind regards,
d

Doronro’s picture

hi,
to resolve this problem, two patches are needed:

1 the patch as discussed in comment #2 above

and
2 .../profiles/commons/modules/contrib/og/includes/actions/membership_delete.action.inc

as discussed here
https://www.drupal.org/project/opigno_lms/issues/2953675

regards,
d