Closed (works as designed)
Project:
Drupal core
Version:
9.5.x-dev
Component:
comment.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 May 2018 at 07:14 UTC
Updated:
24 Mar 2023 at 09:44 UTC
Jump to comment: Most recent
Comments
Comment #2
shane birley commentedIs this the error you received:
Comment #3
NewZeal commentedYes, that looks familiar.
Comment #4
shane birley commentedI am thinking this is all related:
Just wanting to document this all since your fix technically "hacks" core -- but your solution does work! The comments system appears to have problem dealing with the null setting on old comments (in my case, migrated from Drupal 6) with user accounts that no longer exist, etc.
Comment #5
clemens.tolboomWe maybe ran into same D6->D8 comment migrations.
#2614504: Values of 'name' & 'email' fields should be NULL when comment has author (uid > 0)
#1986606: Convert the comments administration screen to a view
#2913971: Views regression: 8.4.x EntityField can't handle a null row value from a non-required relationship
Comment #6
rajesh.keladimath commentedI had a problem with the cron execution in 8.7.7 version. Cron was not running because of the error mentioned in the #2. After applying the patch cron execution was successful.
Comment #13
lendudeIs 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.