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.
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).
Comments
Comment #1
StephenRobinson CreditAttribution: StephenRobinson commentedremoved
Comment #2
tascJust 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.
Comment #3
StephenRobinson CreditAttribution: StephenRobinson commentedComment #4
joelstein CreditAttribution: joelstein at On Fire Media commentedHere's a patch which attempts to load the user instead of simply assuming the user exists.
Comment #5
SpokjePatch applies cleanly and solves the problem.
All 11 coding standards messages found by TestBot are not related to this patch.
RTBC for me.
Comment #8
joseph.olstadfixed in dev