• Heya Social SuperMen & SuperWomen !

    Awesome plugin, just a quick feedback I had with an edge case when the buddypress it not fully loaded: the bp_activity_add is not available and WordPress crashed.

    Call to undefined function bp_activity_add() in /wp-content/plugins/super-socializer/inc/social_login.php:207

    It’s with a custom WordPress, I might be the only one so for now adding a fallback works like a charm m(__)m. Ex:
    // register Buddypress activity
    if($theChampIsBpActive && function_exists( 'bp_activity_add' ) )


    Or is there a filter somethere where we can force to disable buddypress related features ? My quick fix won’t work with the future updates.

    Kind Regards,

    Peter

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Heateor Support

    (@heateor)

    Hi Peter,

    Plugin uses the bp_include hook to check if the BuddyPress has been loaded. I will include the changes you have made in the next update. Don’t worry.

    Thread Starter Pierre-Henri Lavigne

    (@peter202202)

    @heateor You rock ! Thank you very much the fast answer ??

    Looking at your helper.php indeed I found the bp_include hook you are talking about and I first gave a try with :
    function disable_the_champ_bp(){
    global $theChampIsBpActive;
    $theChampIsBpActive = false;
    }
    add_action('bp_include', 'disable_the_champ_bp', 15);

    In my theme’s function.php but it didn’t seem to work … ??
    So I ended with a quick trick. If the function_exists or any similar change can be included in the next update, that’s awesome – you are awesome ! – as I can’t clearly reproduce the bug. I’m mostly watching the server log ??

    Thank you very much for your help, I appreciate and have an excellent week-end ??

    Plugin Author Heateor Support

    (@heateor)

    No problem. I will take care of it in the upcoming update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error: Call to undefined function bp_activity_add’ is closed to new replies.