Conflict with Buddyboss

#1064875
  • Resolved Pixel Perfection
    Rank Math free

    Hello,

    Rank Math has an issue with BuddyBoss. Here is the Stack

    [09-Jul-2025 17:24:27 UTC] PHP Fatal error: Uncaught Error: Call to undefined function RankMath\BuddyPress\bp_members_get_user_url() in /home/xxxxxxx/education.xxxxxxxx/assets/plugins/seo-by-rank-math/includes/modules/buddypress/class-buddypress.php:88
    Stack trace:
    #0 /home/xxxxx/education.nfcq.co.uk/wp-includes/class-wp-hook.php(326): RankMath\BuddyPress\BuddyPress->json_ld()
    #1 /home/xxxxx/education.nfcq.co.uk/wp-includes/plugin.php(256): WP_Hook->apply_filters()
    #2 /home/xxxxxx/education.nfcq.co.uk/assets/plugins/seo-by-rank-math/includes/traits/class-hooker.php(106): apply_filters_ref_array()
    #3 /home/xxxxxx/education.nfcq.co.uk/assets/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php(149): RankMath\Schema\JsonLD->do_filter()
    #4 /home/xxxxxxx/education.xxxxxxxx/wp-includes/class-wp-hook.php(324): RankMath\Schema\JsonLD->json_ld()
    #5 /home/xxxxxxx/education.xxxxxxxx/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #6 /home/xxxxxxx/education.xxxxxxxx/wp-includes/plugin.php(565): WP_Hook->do_action()
    #7 /home/xxxxxxx/education.xxxxxxxx/assets/plugins/seo-by-rank-math/includes/traits/class-hooker.php(90): do_action_ref_array()
    #8 /home/xxxxxxx/education.xxxxxxxx/assets/plugins/seo-by-rank-math/includes/frontend/class-head.php(180): RankMath\Frontend\Head->do_action()
    #9 /home/xxxxxxx/education.xxxxxxxx/wp-includes/class-wp-hook.php(324): RankMath\Frontend\Head->head()
    #10 /home/xxxxxxx/education.xxxxxxxx/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #11 /home/xxxxxxx/education.xxxxxxxx/wp-includes/plugin.php(517): WP_Hook->do_action()
    #12 /home/xxxxxxx/education.xxxxxxxx/wp-includes/general-template.php(3192): do_action()
    #13 /home/xxxxxxx/education.xxxxxxxx/assets/themes/nfcq-ed/header.php(16): wp_head()
    #14 /home/xxxxxxx/education.xxxxxxxx/wp-includes/template.php(810): require_once('/home/apcnhfyx/...')
    #15 /home/xxxxxxx/education.xxxxxxxx/wp-includes/template.php(745): load_template()
    #16 /home/xxxxxxx/education.xxxxxxxx/wp-includes/general-template.php(48): locate_template()
    #17 /home/xxxxxxx/education.xxxxxxxx/assets/themes/buddyboss-theme/buddypress.php(10): get_header()
    #18 /home/xxxxxxx/education.xxxxxxxx/wp-includes/template-loader.php(106): include('/home/apcnhfyx/...')
    #19 /home/xxxxxxx/education.xxxxxxxx/wp-blog-header.php(19): require_once('/home/apcnhfyx/...')
    #20 /home/xxxxxxx/education.xxxxxxxx/index.php(17): require('/home/apcnhfyx/...')
    #21 {main}
    thrown in /home/xxxxxxx/education.xxxxxxxx/assets/plugins/seo-by-rank-math/includes/modules/buddypress/class-buddypress.php on line 88

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    We apologize for the issue you are facing with Rank Math and BuddyBoss. The error you provided indicates that there is a call to an undefined function related to BuddyPress within the Rank Math plugin. This could be due to a conflict between the two plugins or a missing dependency.

    To troubleshoot this issue, we recommend the following steps:

    1. Check for Updates: Ensure that both Rank Math and BuddyBoss are updated to their latest versions. Sometimes, compatibility issues are resolved in newer releases.

    2. Conflict Check: You can perform a conflict check using the Health Check plugin. This allows you to disable all plugins except Rank Math and BuddyBoss to see if the issue persists.

    3. Debugging: If you have access to your site’s error logs, check for any additional errors that might provide more context about the conflict.

    4. Reach Out for Support: If the issue continues, please reply to this ticket with your site URL and any additional details. A human agent from our support team will be able to assist you further.

    Thank you for bringing this to our attention, and we appreciate your patience as we work to resolve this issue!

    Sources:
    Confirming a Theme/Plugin Conflict With Rank Math

    Hello,

    This issue has already been reported to our development team, and they are already investigating it.

    We will notify everyone via the usual communication channels once this issue is resolved and the update is added.

    We appreciate your kind patience with this matter.

    Thank you.

    I can confirm that rankmath does NOT work with BuddyBoss as of very recent. As is, BuddyBoss users will not be able to use this at all.

    Hello,

    A fix for this issue will be included in a later plugin update.

    In the meantime please change line 88 of wp-content > plugins > seo-by-rank-math > includes > modules > buddypress > class-buddypress.php from:
    'url' => esc_url( bp_members_get_user_url( $user_id ) ),

    to
    'url' => ! function_exists( 'bp_members_get_user_url' ) ? esc_url( bp_core_get_user_domain( $user_id ) ) : esc_url( bp_members_get_user_url( $user_id ) ),

    Alternatively, you can upload the following Rank Math FREE zip file, which has the patch on your site: https://i.rankmath.com/f/cYNOcy

    Kindly also reach out to the plugin authors to include prefixes in their class|function names to avoid such conflicts, as recommended by WordPress: https://developer.wordpress.org/plugins/plugin-basics/best-practices/

    We hope this helps. Please let us know if you have further questions or concerns.

    Thank you.

    Well, I got a reply…

    This is Nayeem from the BuddyBoss Senior Technical Support team — I’m here to help with your issue.

    Thank you so much for bringing this to our attention and for sharing the patch code. Since the issue is related to the latest Rank Math SEO plugin update, the permanent fix will need to come from their end. It’s great that they’ve already provided a temporary patch to prevent the error for now — we really appreciate you sharing that with us. Unfortunately, there’s no way for us to include this fix directly in our products.

    Thanks again for your cooperation and for sharing the concern with us. We appreciate your time. Wishing you a wonderful day ahead!

    Hello,

    The issue was caused by a naming collision; all globally accessible code should be prefixed with a unique identifier. Prefixes prevent conflicts with other plugins and prevent them from overwriting other plugins’ variables and accidentally calling their functions and classes.

    Don’t hesitate to let us know if you need our assistance with anything else.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this ticket.