Call to a member function label() on null in Drupal\comment\Entity\Comment->getAuthorName()

Created on 2 May 2018, about 6 years ago
Updated 24 March 2023, about 1 year ago

This error occurs on all pages following a migration from Drupal 6 to Drupal 8.

Presumably it is triggered by data. It is an old site with 93,000 comments. I do not expect a fix for this issue but I do need to publish this patch so that the composer build includes the fix I have made.

Feel free to close the issue.

πŸ› Bug report
Status

Closed: works as designed

Version

9.5

Component
CommentΒ  β†’

Last updated 2 days ago

Created by

πŸ‡³πŸ‡ΏNew Zealand kent@passingphase.nz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡±Netherlands Lendude Amsterdam

    Is there any way to get into this state in a non-migration way? Migrations can save incomplete entities, so in that case this error is just doing it's job, reporting on a broken entity.

    As pointed out by @NewZeal when reporting this, this might not need to be fixed. So tentatively closing this as 'Works as designed', feel free to reopen this if somebody can reproduce this or feels we actually should allow comments without authors.

Production build 0.69.0 2024