It's a bug related to #775878: Comment form body field disappears when content type deleted. and #890092: Comment form appering only with a title field if content type of that node is deleted. So to reproduce you must:
- Create a content type
- Create a bunch of nodes and comments of this type
- Delete content type
- Go /admin/content/comment
When you delete a content type, the body of all comments of this content type are also deleted, and when you go to "admin/content/comment" you get a Notice error like:
Notice: Undefined property: stdClass::$comment_body in comment_admin_overview() (line 107 of {yourpath}\modules\comment\comment.admin.inc).
The comment body is called here to create a title to the link of the comment subject, so we could simply check that body exist before call.
Even I can imagine scenarios where node body is not needed, only a subject, so it also could be an ugly error message.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | comment-notice.patch | 1.28 KB | marcingy |
Comments
Comment #1
RicardoJBarrios commentedI've re-checked and it's still there.
It's also related with #890128: Comment body missing if comment module enabled after a content type module.
Comment #2
marcingy commentedThis still happens in D8. SOmething like this should work.
Comment #3
marcingy commentedComment #4
valthebaldComment #5
sundersingh commentedComment #6
sundersingh commentedThis issue cannot be reproduced. As of today, a Content Type can not be deleted if nodes of that type exist.
Deleting the nodes deletes their comments as well and no errors are reported on the comment page. Deleting the Content Type after this also fails to throw an error on the comment page.
Further, the file referenced in this patch (core/modules/comment/comment.admin.inc) no longer exists and has not existed since at least the time the latest patch was submitted.
Comment #7
sundersingh commentedComment #8
shumer commentedReviewed by community. This bug can't be reproduced. Check here for more details.
Comment #9
andypostProper status