Title: [Plugin: Safe Report Comments] Multi site issues
Last modified: August 19, 2016

---

# [Plugin: Safe Report Comments] Multi site issues

 *  Resolved [rangefelt](https://wordpress.org/support/users/rangefelt/)
 * (@rangefelt)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-safe-report-comments-multi-site-issues/)
 * I’ve run into two issues while trying to use this plugin in a multi site environment:
 * 1) The path to admin-ajax.php is incorrect for wp installations in subdirectories.
   Changing $current_blog->siteurl to $current_blog->path (around line 91) solved
   the issue.
 * 2) The cookies used to remember which comments a user have flagged only include
   comment_id, not blog_id, so if comment 1 on blog 1 is flagged, the user can’t
   flag comment 1 on blog 2. This is solved by adding the blog_id to key in the 
   cookie, ie $data[ “$blog_id-$comment_id” ] instead of $data[ $comment_id ], in
   methods already_flagged and mark_flagged.
 * Hope this can help anyone, contact me if you need the actual code.
 * [http://wordpress.org/extend/plugins/safe-report-comments/](http://wordpress.org/extend/plugins/safe-report-comments/)

Viewing 1 replies (of 1 total)

 *  [Mike Smith](https://wordpress.org/support/users/daledubilowski/)
 * (@daledubilowski)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-safe-report-comments-multi-site-issues/#post-1611725)
 * I’d be very interested in getting the code specifics if you’re able to provide
   them.
 * Cheers!
    dale

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Safe Report Comments] Multi site issues’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/safe-report-comments.svg)
 * [Safe Report Comments](https://wordpress.org/plugins/safe-report-comments/)
 * [Support Threads](https://wordpress.org/support/plugin/safe-report-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/safe-report-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/safe-report-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/safe-report-comments/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mike Smith](https://wordpress.org/support/users/daledubilowski/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-safe-report-comments-multi-site-issues/#post-1611725)
 * Status: resolved