Notice: Trying to get property of non-object in file_entity_edit() (line 718 of /www/html/sites/all/modules/contrib/file_entity/file_entity.pages.inc).

https://mysite.com/media/1614/edit/ajax

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

StephenRobinson’s picture

removed

tasc’s picture

Just had the same problem when migrating a lot of files.
In my case, the uid of the file was pointing to a non-existing user. After fixing it, no errors shown anymore.

StephenRobinson’s picture

Issue summary: View changes
joelstein’s picture

Here's a patch which attempts to load the user instead of simply assuming the user exists.

Spokje’s picture

Status: Needs review » Reviewed & tested by the community

Patch applies cleanly and solves the problem.
All 11 coding standards messages found by TestBot are not related to this patch.
RTBC for me.

joseph.olstad’s picture

Status: Reviewed & tested by the community » Fixed

fixed in dev

Status: Fixed » Closed (fixed)

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