I click "Preview" when posting a comment to a forum post and I get:

Notice: Undefined property: stdClass::$status in _zen_preprocess_comment() 

The error comes from line 29 of template.comment.inc. The problem is that comment->status is not set yet for a comment in the Preview state.

Patch attached.

CommentFileSizeAuthor
zen_comment_preview.patch594 bytesADLongwell

Comments

ADLongwell’s picture

The patch causes the comment to get Zen's tags of "unpublished-ness". I'm not sure whether that's the desired effect for everybody or not... it works for me.

barraponto’s picture

Status: Active » Needs review

Tried to reproduce but no error came up. The patch makes sense though.

johnalbin’s picture

Component: PHP code » layout.css
Status: Needs review » Closed (cannot reproduce)