Custom Directory not rendering

BP Profile Search Custom Directory not rendering

  • Author
    Post
  • #12023 Reply
    Marc
    Guest

    I 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?

    #12024 Reply
    andrea
    Plugin Author

    Hi 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.

    #12025 Reply
    Marc
    Guest

    Hi 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.

    #12026 Reply
    andrea
    Plugin Author

    Hi Marc,

    Could you try switching temporarily to a default theme, Twenty-xx?

    #12027 Reply
    Marc
    Guest

    Thanks for the suggestion. I’ve tried that as well. The [bps_directory] still renders an empty page even on the twenty theme.

    #12028 Reply
    andrea
    Plugin Author

    Hi 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.

    #12029 Reply
    Marc
    Guest

    I 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-groups

    I had to add the following line to my WP_REDIS_CONFIG setting in wp-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!

    #12031 Reply
    andrea
    Plugin Author

    Hi Marc,

    That’s great! Thank you for sharing the solution, I’m sure it will be helpful to other users.

Reply to: Custom Directory not rendering
My Information