Skip to:

SingleWP: No Buddypress options in backend #1561

  • jivany


    DJ Paul requested I start a topic on this so here we go.

    On my fresh Single WP 2.9.1 install I checked out revision 2274 and activated BP. Everything appears to be OK except I don’t have a BuddyPress menu in the WP admin area.

    I looked in the code and it appears that is_site_admin() is failing. Looking at is_site_admin() in bp-core/bp-core-wpabstraction.php, I see that it uses get_currentuserinfo(). A little googling and it appears that this function is problematic in 2.9 because of where it is defined (in /wp-includes/pluggable.php). Maybe an initialization order changed?

    Anyhoo, just now I simply replaced the content of is_site_admin() with return is_admin() and it now shows the BuddyPress admin menu.

    Unfortunately, the fix isn’t this simple as get_currentuserinfo() is used a whole lot.

Viewing 4 replies - 1 through 4 (of 4 total)
  • is_admin() is just a function that returns true if the user is in wp-admin, so that’s not going to work. I’ll take a look at this and see if there is a better way to replace the functionality.

    is_site_admin() will be present in 3.0 but deprecated with is_super_admin().



    Holy, I really didn’t read the codex entry for is_admin correctly! :)

    How about:

    if ( !function_exists( 'is_site_admin' ) ) {
    function is_site_admin() {
    return current_user_can('level_10');

    I can’t reproduce this problem, the menu appears fine for me in 2.9.1.



    Just updated to the latest:

    Updated to revision 305.
    Updated to revision 2388.
    Updated to revision 2284.

    Still no Buddypress menu option for the admin user of the site (I can provide a screen shot if you’d like). The only active plugin is Buddypress. If I implement my suggestion above in bp-core/bp-core-wpabstraction.php then it shows up fine.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘SingleWP: No Buddypress options in backend #1561’ is closed to new replies.
Skip to toolbar