Skip to:
Content
Pages
Categories
Search
Top
Bottom

Fatal Errors

  • I am getting an error:

    Fatal error: Call to undefined function get_current_site() in /home/modernap/public_html/loyafamily.com/wp-content/plugins/bp-registration-options/bp-registration-options.php on line 23

    Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of Jeff Sayre
    Jeff Sayre
    Participant

    @jeffsayre

    Was this plugin working before and now it is not? If so, what has changed since then? Did you upgrade WPMU?

    What versions of WP/MU and BuddyPress are you running?

    If you look at the WP Plugin Repository for this plugin, others are having issues with it as well. I would suggest contacting the developer of the plugin and ask when they plan on updating it for the current versions of WP and BP.

    Avatar of qbuster
    qbuster
    Participant

    @qbuster

    I’m having the same error with theme Mandigo. I’m running wp 2.9.2 and buddypress Widgets 1.1.2 on a Linux host.

    Having looked at the code, it breaks down at:

    $wpmu = function_exists(‘is_site_admin’); //from functions.php

    if ( !function_exists( ‘is_site_admin’ ) ) { //bp-core-wpabstraction.php

    function is_site_admin() {

    if ( current_user_can( ‘manage_options’ ) )

    return true;

    return false;

    }

    }

    // if this is WordPress MU // from footer.php

    if ($wpmu) {

    $current_site = get_current_site();

    In my case I am not running WP-MU but it appears bp-core-wpabstraction.php has a user ‘manage_options’ rights so the system thinks it is wp-mu and then can’t find the wp-mu function get_current_site() (which I presume was once unique to wp-mu but is now in wp 2.9.2)

    Avatar of Andy Peatling
    Andy Peatling
    Keymaster

    @apeatling

    There’s no code (as far as I’m aware) in BuddyPress that calls get_current_site().

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

You must be logged in to reply to this topic.