Problem:
When viewing a node without comment timer I get this message:

Notice: Undefined property: stdClass::$comment_timer in comment_timer_node_view() (line 395 of .../sites/all/modules/contrib/comment_timer/comment_timer.module).

Solution:
Should check first if comment timer is enabled for the node type.

Patch is coming.

Comments

czigor’s picture

Status: Active » Needs review
StatusFileSize
new591 bytes
czigor’s picture

Assigned: czigor » Unassigned
boobaa’s picture

Status: Needs review » Fixed

Thanks, committed (with one little change).

mxr576’s picture

Status: Fixed » Needs review
StatusFileSize
new916 bytes

Also need to check if $node->comment_timer is existing. For example, if comment_timer field is hidden in teaser display you will get this error message:

Notice: Undefined property: stdClass::$comment_timer in comment_timer_node_view() (line 394 of /home/openspace/www/sites/all/modules/contrib/comment_timer/comment_timer.module).

mxr576’s picture

StatusFileSize
new916 bytes

Sorry, my previous patch made for an older version of comment_timer. Here is the updated one.

boobaa’s picture

Status: Needs review » Fixed

Thanks, it has been fixed in another way; see 9529574.

boobaa’s picture

Issue summary: View changes

More detailed problem description

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.