BP Profile Search › BP Profile Search Shows All Results Instead of “No Results”
-
AuthorPost
-
SB
GuestHi there,
I’m using BP Profile Search together with Paid Memberships Pro and the BuddyPress & BuddyBoss Add-On.
I’ve encountered an issue where, when the BuddyPress & BuddyBoss Add-On is enabled, performing a search that should return no matching results instead displays all BuddyPress member profiles — as if no filters were applied at all.
However, when I disable the BuddyPress & BuddyBoss Add-On, the same search correctly returns a “No members matched your criteria” message.
It seems like the add-on changes how empty or null search results are handled and causes BP Profile Search to default to showing all users.
My questions:
Is this a known issue or intended behavior when the BuddyPress & BuddyBoss Add-On is active?
Is there a way to prevent BP Profile Search from displaying all profiles when no match is found — and instead show the usual “No results” message?
Is there a workaround (e.g. a hook or filter) to restore the correct behavior while keeping the add-on enabled?
Thanks in advance for your help!
Best regards
andrea
Plugin AuthorHello SB,
This is a well-known problem with PMPro BuddyPress Add On, see my forum post from 2018:
https://wordpress.org/support/topic/suggesting-a-patch/
and this GitHub issue from 2019:
https://github.com/strangerstudios/pmpro-buddypress/issues/63
This issue was updated just yesterday and you can find a suggested solution there. Please let me know if it works for you!
SB
GuestThis thread is very old. There is a new version of their plugin version 1.5.1 out . A few things have been already fixed there. But it wont work in this most recent combination. I think its good to take a code review and to correct it in the most recent code. Therefore i need support or some input to understand it.
andrea
Plugin AuthorHi SB,
Unfortunately I am not familiar with the newer versions of PMPro BuddyPress Add On, although I suggested a patch in 2018.
PMPro BuddyPress Add On runs after BP Profile Search and incorrectly displays the entire directory if there are no search results. BP Profile Search cannot do anything about this.
I suggest you contact the Paid Memberships Pro team, I think they should fix the bug in their code.
Alternatively, you could try the solution suggested in the latest post of the GitHub issue:
https://github.com/strangerstudios/pmpro-buddypress/issues/63#issuecomment-2772261487
As you can see, the poster stated just two days ago that it works fine. Can you confirm that it doesn’t work for you?
-
AuthorPost