Bug #23260 Version Retired

Approve/Delete/Close Comment links in “Admin - Comment(s) notification” email are broken

Version: 3.5.11 Reporter: DSite

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

The links that are auto-generated by the Approve/Delete/Close Comment link variables in the “Admin - Comment(s) notification” email template seem to use an older schema. Here is the link I get for Close:


The Approve and Delete links are constructed similarly.

When I click on these links, I get an error message in the CP:

404: Item does not exist. Sorry, we could not find the item you are trying to access in the system. URL: &module=comment&method=change_comment_status&comment_id=8&status=c

  • In the meantime, I would love to reconstruct the proper schema manually in the template using the {entry_id} variable. Could you let me know what the proper schema would be for each function? I’ve asked in a support ticket and was directed here.

    30th October, 2017 at 9:29am
  • We can’t get the status to change in v3 via link at the moment, so for the short term I’ve added a patch that will send the link to the comment edit page. See the solution tab.

    I’d probably go with manually constructing the URL in the actual email using the {comment_id} variable, so as to not maintain a patch.

    Will that do for now?

    Robin Sowell
    30th October, 2017 at 4:23pm
  • Yep. That’ll do for now. Thanks, Robin!

    30th October, 2017 at 4:50pm
  • In version 3, the links should go to the edit page and not close automatically.

    To have the notification construct an edit link, you can edit system/EE/EllisLab/Addons/comments/mod.comment.php around line 2663. Replace the links to point to the comment edit page.

    'edit_link'  => $cp_url.'/cp/publish/comments/edit/'.$comment_id,
           'delete_link'  => $cp_url.'/cp/publish/comments/edit/'.$comment_id,
           'approve_link'  => $cp_url.'/cp/publish/comments/edit/'.$comment_id,
           'close_link'  => $cp_url.'/cp/publish/comments/edit/'.$comment_id,

    Alternately, you could manually construct the link in the email message template. It’s just http://site.com/system/index.php?/cp/publish/comments/edit/{comment_id}.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases