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:

/index.php?S=0&D=cp&C=addons_modules&M=show_module_cp&module=comment&method=change_comment_status&comment_id=8&status=c

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 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