You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue 1- The” BuddyPress Add On” overrides query_vars and then shows ALL members no matter what search is typed in.
Issue 2- Setting “Lockdown BuddyPress?” to NO stops ALL members from showing
“Include in Member Directory” should be ignored if lock-down is set to NO
========== to recreate problem =========
Install plugins:
Buddypress
Paid Memberships Pro
Paid Memberships Pro – BuddyPress Add On
BP Profile Search
(see plugin list for URLs)
The search results page will show ALL members instead of only the “found members”
Traced the problem to here:
/pmpro-buddypress-master/includes/directory.php
– THIS – function pmpro_bp_bp_pre_user_query_construct()
– USES – $query_array->query_vars[‘include’]
– FORCING – an array of ALL members into the include list
It should instead honor any search filters, especially those done by “BP Profile Search”
Because of this any “search queries” are nullified and the search system misbehaves.
Here's a possible workaround that should work with the with the latest versions of BuddyPress v6.0.0, PMPro v2.3.3, and the PMPro BuddyPress Integration v1.2.5. Please be aware this is not a thoroughly tested recipe and is therefore considered as a “use-at-own-risk” option.
For now, I recommend using the gist @ipokkel provided. The BPS Search plugin is taking over the search query. We need a bit more thought around a solution here.
User reported the following:
Issue 1- The” BuddyPress Add On” overrides query_vars and then shows ALL members no matter what search is typed in.
Issue 2- Setting “Lockdown BuddyPress?” to NO stops ALL members from showing
“Include in Member Directory” should be ignored if lock-down is set to NO
========== to recreate problem =========
Install plugins:
Buddypress
Paid Memberships Pro
Paid Memberships Pro – BuddyPress Add On
BP Profile Search
(see plugin list for URLs)
Add in some custom fields
https://codex.buddypress.org/administrator-guide/extended-profiles/
Create a search form using BP Profile Search
The search results page will show ALL members instead of only the “found members”
Traced the problem to here:
/pmpro-buddypress-master/includes/directory.php
– THIS – function pmpro_bp_bp_pre_user_query_construct()
– USES – $query_array->query_vars[‘include’]
– FORCING – an array of ALL members into the include list
It should instead honor any search filters, especially those done by “BP Profile Search”
Because of this any “search queries” are nullified and the search system misbehaves.
Moderators only:
https://www.paidmembershipspro.com/forums/topic/bug-report-the-buddypress-add-on-overrides-query_vars-shows-all-members/ (includes video)
The text was updated successfully, but these errors were encountered: