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.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | comment_timer_noticce-2083363-2.patch | 916 bytes | mxr576 |
| #4 | comment_timer_noticce-2083363-2.patch | 916 bytes | mxr576 |
| #1 | comment_timer_noticce-2083363-1.patch | 591 bytes | czigor |
Comments
Comment #1
czigor commentedComment #2
czigor commentedComment #3
boobaaThanks, committed (with one little change).
Comment #4
mxr576Also 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).Comment #5
mxr576Sorry, my previous patch made for an older version of comment_timer. Here is the updated one.
Comment #6
boobaaThanks, it has been fixed in another way; see 9529574.
Comment #6.0
boobaaMore detailed problem description