In line 415 of comment_notify.module it erroneusly uses $alert->uid when $alert has not been populated.
It can be corrected using the real UID from the node creator that is the UID of the addressee to be notified.

so changing:
line 415: '!edit_uri' => url('user/'. $alert->uid .'/edit', array('absolute' => TRUE))
to:
line 415 '!edit_uri' => url('user/'. $node->uid .'/edit', array('absolute' => TRUE))

fix the issue.

CommentFileSizeAuthor
comment_notify.module.patch611 bytesDREAMER_ES

Comments

greggles’s picture

Status: Patch (to be ported) » Closed (duplicate)

Thanks - this patch no longer applies and I think (hope?) it's because it was fixed.

See #434414: node author notification not getting notified during anonymous comments and link to edit page not valid for the details on the fix.