Title: Bug
Last modified: August 31, 2016

---

# Bug

 *  Resolved [Shamalli](https://wordpress.org/support/users/mihail-chepovskiy/)
 * (@mihail-chepovskiy)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/bug-131/)
 * Latest version of PMpro
 * File: paid-memberships-pro\includes\content.php
 * Following filters must receive 2 arguments:
    add_filter(“comments_array”, “pmpro_comments_filter”);
   add_filter(“comments_open”, “pmpro_comments_filter”);
 * it must be
    add_filter(“comments_array”, “pmpro_comments_filter”, 10, 2); add_filter(“
   comments_open”, “pmpro_comments_filter”, 10, 2);
 * because function has 2 arguments: pmpro_comments_filter($comments, $post_id =
   NULL)
 * in other case there are errors on some pages.
 * [https://wordpress.org/plugins/paid-memberships-pro/](https://wordpress.org/plugins/paid-memberships-pro/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Jason Coleman](https://wordpress.org/support/users/strangerstudios/)
 * (@strangerstudios)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/bug-131/#post-7137945)
 * Thanks for the heads up on this. We’ll get this fixed ASAP.
 *  Thread Starter [Shamalli](https://wordpress.org/support/users/mihail-chepovskiy/)
 * (@mihail-chepovskiy)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/bug-131/#post-7138129)
 * Could you, please, finally implement a fix for this.
 * We are going to adapt our directory plugin for PMPro plugin, but it gives errors
   on wp_insert_post() function call.
 *  Plugin Author [Jason Coleman](https://wordpress.org/support/users/strangerstudios/)
 * (@strangerstudios)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/bug-131/#post-7138130)
 * Thanks for the reminder on this. Missed it in 1.8.9, but it will be in the next
   update that goes out. Here’s the patch:
 * [https://github.com/strangerstudios/paid-memberships-pro/commit/332dad22cdd54635a6114d6805912c8085e43759](https://github.com/strangerstudios/paid-memberships-pro/commit/332dad22cdd54635a6114d6805912c8085e43759)
 * Can you give details on the wp_insert_post errors?
 *  [bruceluis](https://wordpress.org/support/users/bruceluis/)
 * (@bruceluis)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/bug-131/#post-7138134)
 * HI there, Im interested in that member directory. The one under add-ons (Member
   Directory and Profile Pages) have an issue that I don’t know how to fix.
 * If I make my shortcode like the sample they provided:
    [pmpro_member_directory
   levels=”1″] it does not display the memberships with level 1, just an empty result.
 * Can you help me out?
 * Thanks a lot!
 *  Thread Starter [Shamalli](https://wordpress.org/support/users/mihail-chepovskiy/)
 * (@mihail-chepovskiy)
 * [10 years ago](https://wordpress.org/support/topic/bug-131/#post-7138137)
 * Thanks for the fix, much better now.
 *  Plugin Author [Jason Coleman](https://wordpress.org/support/users/strangerstudios/)
 * (@strangerstudios)
 * [10 years ago](https://wordpress.org/support/topic/bug-131/#post-7138139)
 * [@bruceluis](https://wordpress.org/support/users/bruceluis/), we can help you
   in our member forums. At least open your own thread here.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Bug’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paid-memberships-pro_f1dacb.svg)
 * [Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions](https://wordpress.org/plugins/paid-memberships-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paid-memberships-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paid-memberships-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/paid-memberships-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paid-memberships-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paid-memberships-pro/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Jason Coleman](https://wordpress.org/support/users/strangerstudios/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/bug-131/#post-7138139)
 * Status: resolved