Summary: When comments are published from the comment approval queue, the submission form returns a blank page, and no notifications are made.

On a 4.7.3 site I have successfully installed comment notify, with the patch to comment.module. It works when comments are published immediately on submission, but fails when comments go into the comment moderation queue

The workflow on the site is:
Anonymous and authenticated users CANNOT 'post comments without approval' thus... comments are put into the approval queue.

without comment notify:
Administrator goes to the approval queue - admin/comment/list/approval.
Admin selects 'publishes the comment', and hits 'update'
the 'published comments' page is displayed
the comment is published

with comment notify:
Administrator goes to the approval queue - admin/comment/list/approval.
Admin selects 'publish the comment', and hits 'update'
>>>Blank page is returned<<<
A refresh brings up the 'published comments' page, with the message:
"An illegal choice has been detected. Please contact the site administrator."
In the log: "Illegal choice 25399 in comments element. "
Regardless, the comment is published.
But comment notify does not do the mail notifications.

From my initial analysis and break-point testing the problem is most likely in function _comment_notify_mailalert2($comment)

Comments

Christoph C. Cemper’s picture

ok - meaning your problems occur ONLY if commet moderation is ON? please confirm

jdsaward’s picture

Yes. Confirmed

greggles’s picture

I can't reproduce this in 5.x. I suggest you upgrade your site and see if the problem goes away.

greggles’s picture

Status: Active » Closed (fixed)

No followup for 2 weeks, so assumed not to be a problem any more.

jdsaward’s picture

Sorry. Yes, I should have replied. It is no longer an issue in the sense that the site in question developed in an entirely different direction.

It was a 4.7 site, so if - as you say - you cannot reproduce it in 5.x I agree the issue is not worth following up any further.

Thanks. John.