Conflict with BuddyBoss + Geo My WP

BP Profile Search Conflict with BuddyBoss + Geo My WP

  • Author
    Post
  • #12540 Reply
    Jamie
    Guest

    Hi Andrea,

    I am continuing here the support issue we were discussing previously on the WordPress forums.

    For the benefit of other users viewing this thread, I’ll briefly summarise the problem…

    The problem is: When I have BP Profile Search plugin activated at the same time as Geo My WP, it results in a Critical Error which crashes the website.

    I have tried these trouble-shooting steps as you suggested…

    In your dashboard, go to BuddyBoss -> Settings -> Profiles (the URL is wp-admin/admin.php?page=bp-settings&tab=bp-xprofile), then scroll all the way down to “Profile Search” and uncheck the “Enable advanced profile search in the members directory” checkbox.

    Are you still getting errors after this step? If so, deactivate both BP Profile Search and GEO my WP, then activate BP Profile Search first and GEO my WP second, and both should be up and running without any errors.

    Can you confirm?

    I am still getting a critical error, which puts my website (staging) into recovery mode.

    If you have any further insights or suggestions I would very much appreciate it, as I would really like to get the maps component working with the members profile search.

    Many thanks
    Jamie

    #12541 Reply
    andrea
    Plugin Author

    Hi Jamie,

    If you’re okay with it, I’d like to take a look at your staging site. I’ll need the admin login credentials, which you can share privately via my Contact page.

    #12545 Reply
    Jamie
    Guest

    Thanks Andrea, I’ve just sent you the login credentials.

    #12546 Reply
    andrea
    Plugin Author

    Thank you Jamie for letting me use your staging site.

    For other interested readers, the solution was to write a custom modification to a BuddyBoss Platform file.

    Open buddyboss-platform/bp-search/bp-search-functions.php, locate line 600:

    if ( in_array( 'geo-my-wp/geo-my-wp.php', apply_filters( 'active_plugins', (array) get_option( 'active_plugins', array() ) ), true ) ) {

    and insert “false &&” after the first “(“:

    if ( false && in_array( 'geo-my-wp/geo-my-wp.php', apply_filters( 'active_plugins', (array) get_option( 'active_plugins', array() ) ), true ) ) {

    The downside of this solution is that you have to reapply the change every time you update the BuddyBoss Platform. Also, the change only works if BP Profile Search is active; if you decide to deactivate it, you should also undo the change.

Reply to: Conflict with BuddyBoss + Geo My WP
My Information