Hi, we need to share user table accross multi site installation.
But - we can't share the managed files table. Therefor, if we create a view on the sub-page which contains the user picture, we receive the following notice:
Notice: Trying to get property of non-object in views_handler_field_user_picture->render() (line 82 of /mnt/www/html/docroot/sites/all/modules/contrib/views/modules/user/views_handler_field_user_picture.inc).

Node module can handle the situation - but views not. To fix this, we need to change some code in views/modules/user/views_handler_field_user_picture.inc

As this has NO sideeffects - can this be commited?

Comments

vistree created an issue. See original summary.

Neo13’s picture

Status: Active » Reviewed & tested by the community

I ran into a similar problem with user pictures too. The patch applied without problems and fixed the issue. If there are no issues this should be commited.

wfragakis’s picture

This patch solved our error messages. Is there a suggestion on how to find which images may have been causing the issue? We're trying to sort out a purchased theme and migrate it to an existing site.

introfini’s picture

This patch also fixed our errors of that type.

damienmckenna’s picture

Title: Error in views_handler_field_user_picture.inc if user picture fid exists in user-table but not in managed files table » Error in views_handler_field_user_picture.inc if user picture fid exists but file cannot be loaded
Version: 7.x-3.13 » 7.x-3.x-dev
Parent issue: » #2903944: Plan for Views 7.x-3.19 release

damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thank you all.

Status: Fixed » Closed (fixed)

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