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.
Warning: key() expects parameter 1 to be array, null given in commons_trusted_contacts_og_membership_update() (line 516 of /Users/jimmy/Sites/Dev Desktop2/commons-7.x-3.9-core/profiles/commons/modules/commons/commons_trusted_contacts/commons_trusted_contacts.module).
EntityMetadataWrapperException: Unable to set the data property state as the parent data structure is not set. in EntityStructureWrapper->setProperty() (line 473 of /Users/jimmy/Sites/Dev Desktop2/commons-7.x-3.9-core/profiles/commons/modules/contrib/entity/includes/entity.wrapper.inc).
When approving a trusted contact in 3.9.
Comments
Comment #1
garyconroy CreditAttribution: garyconroy commentedConfirm. I am seeing the same behaviour
Comment #2
BarisW CreditAttribution: BarisW commentedSame here, any thoughts?
Comment #3
BarisW CreditAttribution: BarisW commentedI'm not sure what this piece of code does:
But if I change it to
It seems to work. Note the propertyConditions for gid and etid.
Comment #4
obynz CreditAttribution: obynz commentedHi,
I just did the same as #3 and it worked for me.
Comment #5
japerryTesting this, as well as making sure groups are being assigned to each other. It appears group membership isn't going both ways when people add each other as trusted contacts.
Comment #7
japerryFixed! (Sorta)
I committed this patch to help surpress the error message:
http://drupalcode.org/project/commons.git/commit/22fbebe
However, the fix mentioned above will not fix the trusted contacts problem of approving another member. When a membership is approved, both members should be joined to each other, which is why we have opposite ids being inserted. I couldn't reproduce the issue you had, so once we release 3.10, let me know what watchdog errors you get and we can further debug from there.
Comment #8
lsolesen CreditAttribution: lsolesen commented@japerry seems to have fixed this, so closing. Please reopen if this is still a problem.