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.
Although this should be an edge case, in our current project we get a WSOD on the /admin/content/message page because some of the users that created a message are deleted from the database, maybe as a result of syncing databases over different server in our OTAP.
The generated error is:
The website encountered an unexpected error. Please try again later.
Error: Call to a member function label() on null in Drupal\message\MessageListBuilder->buildRow() (line 93 of modules/contrib/message/src/MessageListBuilder.php).
I will include a patch that resolves the issue, but maybe this error should not occur in 'normal' situations.
Comment | File | Size | Author |
---|---|---|---|
#2 | deleted-author-name-2903143-D8.patch | 573 bytes | louisnagtegaal |
Comments
Comment #2
louisnagtegaal CreditAttribution: louisnagtegaal commentedAdded patch.
Comment #3
louisnagtegaal CreditAttribution: louisnagtegaal commentedComment #4
louisnagtegaal CreditAttribution: louisnagtegaal commentedComment #5
maaty388 CreditAttribution: maaty388 commentedRemember to set status to needs review after submitting patch
Comment #6
maaty388 CreditAttribution: maaty388 commentedComment #7
maaty388 CreditAttribution: maaty388 commentedThis patch is working for me
Comment #8
maaty388 CreditAttribution: maaty388 commentedComment #10
jhedstromAwesome, thanks!
Changed on commit to use
$this->t()
.