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:

  1. Create a content type
  2. Create a bunch of nodes and comments of this type
  3. Delete content type
  4. 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.

CommentFileSizeAuthor
#2 comment-notice.patch1.28 KBmarcingy

Comments

RicardoJBarrios’s picture

Version: 7.0-rc2 » 7.x-dev

I'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.

marcingy’s picture

Version: 7.x-dev » 8.x-dev
Status: Active » Needs review
StatusFileSize
new1.28 KB

This still happens in D8. SOmething like this should work.

marcingy’s picture

Priority: Minor » Normal
valthebald’s picture

Issue summary: View changes
Issue tags: +Needs reroll, +needs relevance check, +Novice
sundersingh’s picture

Assigned: Unassigned » sundersingh
sundersingh’s picture

This 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.

sundersingh’s picture

Assigned: sundersingh » Unassigned
shumer’s picture

Issue tags: +dcdn-sprint

Reviewed by community. This bug can't be reproduced. Check here for more details.

andypost’s picture

Status: Needs review » Closed (cannot reproduce)

Proper status