Hello there!
How to fix this error.
Notice: Undefined offset: 0 in comment_submit() (line 2197 of mysite.com/modules/comment/comment.module)

I publish comment -> Reload the page = And I'm getiting this error. ->
After second reload of page. No more error.
Thank you!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

johnv’s picture

Title: Notice: Undefined offset: 0 in comment_submit() (line 2197 of mysite.com/modules/comment/comment.module) » Notice: Undefined offset: 0 in comment_submit() (line 2197 of comment/comment.module)
Issue summary: View changes

I'm using D7.22, to (although D7.26 is already out.)

This happens when I add a comment with the body field is not required, and I add no comment in the body. (I have other fields attached to the comment that do contain new info)

alvar0hurtad0’s picture

Version: 7.22 » 7.28
Status: Active » Needs review
FileSize
1.18 KB
lurish’s picture

Status: Needs review » Reviewed & tested by the community

It's ok!!!

alvar0hurtad0’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
1.78 KB

this patch fix also the rest of notices when body isn't on the comment.

alvar0hurtad0’s picture

alvar0hurtad0’s picture

johnv’s picture