BP Profile Search › Custom Directory not rendering
-
AuthorPost
-
Marc
GuestI would greatly appreciate some help debugging a strange issue.
I’ve created a new page and added the
[bps_directory]
shortcode but it renders a blank page.My default buddyboss members directory under the
/members
pages renders just fine, and I can also add a search form to that page which works as expected.I’ve already tried disabling all the non-essential plugins but that didn’t help.
Can I maybe see some debug information in the logs to figure out what’s going wrong?
andrea
Plugin AuthorHi Marc,
Could you please paste here the BP Profile Search debug info? It’s explained in:
https://dontdream.it/bp-profile-search-5-4-6/
Additionally, you can look for JavaScript errors in your browser’s console.
Marc
GuestHi Andrea,
Here’s the debug info:
Version 5.4.8 Platform BuddyBoss Platform 2.3.3 Theme BuddyBoss Child 1.0.0 Members index template /themes/buddyboss-theme/buddypress/members/index.php Members loop template /plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/members/members-loop.php Form template(s) /plugins/bp-profile-search/templates/members/bps-form-default.php
As far as I can tell, there are no JS errors in the console.
andrea
Plugin AuthorHi Marc,
Could you try switching temporarily to a default theme, Twenty-xx?
Marc
GuestThanks for the suggestion. I’ve tried that as well. The
[bps_directory]
still renders an empty page even on the twenty theme.andrea
Plugin AuthorHi Marc,
I can’t reproduce this problem, but if you wish I can take a look at your testing site. I’ll need an admin access, and if you agree you can share it privately using my Contact page.
Marc
GuestI found and solved it. Finally 🙂
It had to do with precisely what you write at the top of the custom directories page.
“Additional member directories may not work well with persistent cache plugins.”
Well, I can confirm that now.
I had
Object Cache Pro
running and once I disabled it the[bps_directory]
came to life.The solution is described here:
https://objectcache.pro/docs/ignoring-groups#excluding-groupsI had to add the following line to my
WP_REDIS_CONFIG
setting inwp-config.php
:'non_persistent_groups' => [ 'bp_pages', ],
Might be something to add to the documentation page if anyone else runs into this in the future.
Thanks for the help!
andrea
Plugin AuthorHi Marc,
That’s great! Thank you for sharing the solution, I’m sure it will be helpful to other users.
-
AuthorPost