I have comment notify working properly for default comment type. But it doesn't work for comments assigned to another comment type.
Let me explain.
Create comment type called Answers. Next, create comment type Replies and select Comment as the target. Add Replies comment type to Answers comment type. Next, we add Answers comment type to a node.
Leave an Answer. Then you try to create a "Reply" to that comment.
You get the following error.
/modules/comment_notify/comment_notify.module on line 311
If you go under Structure > Comment type > Custom Comments > Manage dispaly. The Comment notify doesn't show.
Any ideas? Am I doing something wrong or is there an issue with the module?
Comment | File | Size | Author |
---|---|---|---|
#6 | answer comment.png | 47.99 KB | tepelena |
#6 | default comments.png | 37.84 KB | tepelena |
Comments
Comment #2
maaty388 CreditAttribution: maaty388 commentedIf you go under /admin/config/people/comment_notify you can see that you need to enable on which content types you want to apply comments, then go to the /structure/comment/manage/your_comment_machine_name/display and here you will see it works. You also need to apply comments to your content type to make it works. Hope it helps.
Comment #3
tepelena CreditAttribution: tepelena commentedThanks for the quick reply. So I did that and now it is partially working. I am setting up a Q&A where Questions is a node and Answers are a comment type. I have created custom Comment type for Answeres and attached them to Answer comment. The issue is still there when someone comments on a Answer. It crashes giving the same error as above.
Comment #4
maaty388 CreditAttribution: maaty388 commentedI literally tested this right now and it is working for me without any doubts. Can you provide step by step when the problem occurs?
Comment #5
tepelena CreditAttribution: tepelena commentedI went ahead installed the module and reinstalled it. One strange issue is that when I go to comment form settings [manage form display] it doesn't show Comment Notify field. it shows it on the default comment type but not on the custom comments I created.
Comment #6
tepelena CreditAttribution: tepelena commentedSee attached pics.
Comment #7
tepelena CreditAttribution: tepelena commentedStill getting the error.
Fatal error: Call to a member function bundle() on null in /modules/contrib/comment_notify/comment_notify.module on line 311
The problem is not with the [Answer] comment type. It is when one tries to leave a comment for the [Answer] comment type.
Comment #8
tepelena CreditAttribution: tepelena commentedComment #9
tepelena CreditAttribution: tepelena commentedComment #10
tepelena CreditAttribution: tepelena commentedComment #11
tepelena CreditAttribution: tepelena commentedComment #12
greggles"Needs review" is for situations where there is a patch so setting this to Active. The error from comment #7 seems like it might be fixed from some of the recent patches committed or another patch in the queue. Can you try searching for that?
Comment #13
gregglesThere is a patch at #2618182: Support all entity types as commentable, not only nodes that adds this functionality. Can you review that? Marking this as a duplicate of that.