Getting a notice "Undefined property: stdClass::$group_content_access" when saving a user account after adding a photo.

This may be related to having moved the user photo field to the profile using the user_picture_field module.

Issue solved by just adding a test if the $entity->group_content_access element exists (line 241 in commons_media.module)

if (isset($entity->group_content_access[LANGUAGE_NONE][0]['value']) AND $entity->group_content_access[LANGUAGE_NONE][0]['value'] == 2) {

Comments

Devin Carlson’s picture

Version: 7.x-3.15 » 7.x-3.x-dev
Status: Active » Fixed

Thanks for the suggestion!

Tested and committed to Commons 7.x-3.x.

Status: Fixed » Closed (fixed)

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