Skip to:
Content
Pages
Categories
Search
Top
Bottom

No BP Groupblogs menu under Buddypress menu in Network Admin?

  • Avatar of dains
    dains
    Participant

    @dains

    I just set up a development server from scratch with WP 3.1 and enabled network sites, installed the latest BP and installed BP Groupblogs and network-activated both. However, I don’t see the configuration menu for BP Groupblogs under Buddypress in the Network Admin side?

    More info – after putting the the BP Groupblog themes in the correct folders, I activated the BP Groupblog 1.2 theme on the main site, created a group with a blog, and found that BP Groupblog appears to be working – I can see the new blog both under the test group’s blog page and under the main Blogs page.

    Even more info – I don’t see any plugins available for configuration in either the main or test group’s blog admin – only the network admin page has any plugins. Since I’m new to WP multisite, I’m not sure if this is correct or not, so I thought I’d throw it in.

    Thanks in advance for any help!

    David

Viewing 17 replies - 1 through 17 (of 17 total)
  • Avatar of Hugo
    Hugo
    Moderator

    @hnla

    Sounds as though the plugin hasn’t been updated to work with 3.1, 3.1 split the admin into two ‘Site Admin’ & ‘Network Admin’ the plugin has to update to take into account new action for ‘network_admin_menu’ if is is_network_admin where multisite installs are concerned and also any paths to pages in admin now need to reflect /network/ in them.

    Avatar of dains
    dains
    Participant

    @dains

    Ah, so the plugin just doesn’t know where to show its menu, but it’s working fine otherwise. Except for the whole “configure me” part of course.

    My bad, I should have followed the “compatible to” and stuck with 3.0.1 I guess. I had done an update to 3.1 on the previous installation with BP Groupblogs installed and the BPGB config menu stayed visible, so I assumed it was compatible with 3.1. (I hadn’t set up multisite correctly on that site so I trashed it and started over and ended up here.)

    Thank you very much for the help!

    David

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    It’s the multisite that causes the issue rather than simply 3.1, 3.1 single site will show the menu where expected. It should be relatively easy to hack the plugin to work with multisite if you have basic php skills or see if you can contact the author and ask whether there are plans for an upgrade.

    Avatar of dains
    dains
    Participant

    @dains

    Unfortunately, while my PHP skills can charitably be described as “basic” (working on them too), the plugin authors are quite advanced. This appears to be a major functionality issue so I anticipate they’re already aware of it. But I’ll chime in too of course :)

    Thanks again for your help! Off to destroy my new dev installation and set up 3.0.1. Thank goodness it only takes a half hour or so.

    Avatar of dains
    dains
    Participant

    @dains

    Update – reinstalled WP 3.0.1 and BP 1.2.8, the BP GB admin menu shows up under the Buddypress admin menu and works fine.

    So yup, 3.1 compatibility issue. I’ve left a message for Marius with a link to this thread in case he wants to respond here.

    Dains,

    How does one downgrade a WP installation?

    Is there an easier solution to Groupblog’s incompatibility with WP3.1?

    Avatar of dains
    dains
    Participant

    @dains

    Oops, sorry, I’m not getting emails for updates for some reason. I did a reinstall of 3.01 / BP 1.2.8 because it’s a development site. I don’t know if there’s any way to roll back a WP installation, but I bet any answers would be on WordPress.org in or near the Upgrade instructions.

    Regarding an easier solution, I think the only one is an update to the Groupblog plugin.

    I found a solution. Don’t know if this is a ‘clean solution’ (guess not) but it works for me:

    Open bp-groupblog-admin.php
    Replace (around 250)

    /**
    * bp_groupblog_add_admin_menu()
    */
    function bp_groupblog_add_admin_menu() {
    global $wpdb, $bp;

    if ( !is_site_admin() )
    return false;

    /* Add the administration tab under the “Site Admin” tab for site administrators */
    add_submenu_page( ‘bp-general-settings’, __( ‘GroupBlog Setup’, ‘groupblog’ ), ‘‘ . __( ‘GroupBlog Setup’, ‘groupblog’ ) . ‘   ‘, ‘manage_options’, ‘bp_groupblog_management_page’, ‘bp_groupblog_management_page’ );

    }
    add_action( ‘admin_menu’, ‘bp_groupblog_add_admin_menu’, 10 );

    with:

    /**
    * bp_groupblog_add_admin_menu()
    */
    function bp_groupblog_add_admin_menu() {
    global $wpdb, $bp;

    if ( !is_site_admin() )
    return false;

    // If this is WP 3.1+ and multisite is enabled, only load on the Network Admin
    if ( is_multisite() && function_exists( ‘is_network_admin’ ) && ! is_network_admin() )
    return false;

    /* Add the administration tab under the “Site Admin” tab for site administrators */
    add_submenu_page( ‘bp-general-settings’, __( ‘GroupBlog Setup’, ‘groupblog’ ), ‘‘ . __( ‘GroupBlog Setup’, ‘groupblog’ ) . ‘   ‘, ‘manage_options’, ‘bp_groupblog_management_page’, ‘bp_groupblog_management_page’ );

    }
    add_action( is_multisite() ? ‘network_admin_menu’ : ‘admin_menu’, ‘bp_groupblog_add_admin_menu’, 10 );

    And GroupBlog Setup shows up in the menu for you to fill out….

    Avatar of billyehill
    billyehill
    Member

    @billyehill

    Thank you ronaldzw – your solution worked for me::WP 3.1 and Buddypress 1.2.8

    Avatar of dains
    dains
    Participant

    @dains

    @ronaldzw – Nice! I hope Marius checks in and sees this!

    Avatar of dains
    dains
    Participant

    @dains

    Oops, I’m now running into a T string error on line 246 when I place this code into bp-groupblog-admin.php. I’ve looked at the syntax and confirmed that I’m deleting exactly the old code specified and placing the new code correctly. Has anyone else experienced this?
    Edit: before I applied this fix, I upgraded the 3.01 dev site to 3.1.2 successfully – everything appears to be working save for the Groupblogs menu.

    Edit2 – @ronaldzw I found that the line for ‘/* Add the administration tab under the “Site Admin” tab for site administrators */ ‘ suffers from a posting error here – it doesn’t show the code for bp-groupblog-admin-menu-header, and that’s why pasting in your code didn’t work.

    I fixed that line by using the original code snipped from the bp_groupblog_admin file, and the changed plugin doesn’t error out now, but neither does it show the Groupblogs menu :(

    Avatar of ajaxmac
    ajaxmac
    Participant

    @ajaxmac

    @ronaldzw code worked for me too – had to replace some of the quotes though – as they came through as weird characters that PHP didn’t really like…

    Cheers

    Avatar of Quint
    Quint
    Participant

    @qrahaman

    @ajaxmac, Could you post your cleaned up version of the code enclosing it in back ticks (`)? Also, have you tested it against Buddypress 1.5 RC or any of the Betas? One last thing, have you had any issues with using the plugin once you got it working? Thank you!

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    A BP 1.5 compatible version of BP Groupblog should be released sometime this week. You can get the development version from https://github.com/boonebgorges/bp-groupblog

    Avatar of Quint
    Quint
    Participant

    @qrahaman

    @boonegorges, thanks. I tried to install the development version but got the white screen. I got back to the network admin dashboard by clicking on the browser back button. Selecting any other item on the dashboard brings back the white screen. I didn’t know how to undo what had happened since it still appeared as though groupblog had not been installed. So, I re-installed WordPress, then BP 1.5 RC (this time using the bp-default theme, not my child theme), and then tried to install groupblog one more time. Same outcome.

    Off to re-install WP/BP once again. I’ll wait to try the installation of the development version of groupblog until you give me/us the a-ok. Thanks!

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    It should be running fine, though if it makes you feel better you can wait until the stable version is out. It’s possible that you were running the new and old versions side by side, which would cause fatal errors.

    In any case, you do not need to reinstall WP when stuff like this happens. Just navigate to your plugin folder, and rename/delete the folder of the plugin that caused the problem (bp-groupblog in this case).

    Avatar of Quint
    Quint
    Participant

    @qrahaman

    @boonegorges, my oversight. You are correct, it works. I totally missed the huge, blue “Read Me” on the github page. Consequently, I had put the unzipped folder directly into the plugins directory without changing the folder name. Duh!!! Sorry for wasting your time. Thanks.

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

You must be logged in to reply to this topic.