Plugin: BP Group Hierarchy

Join this plugin group to follow comments, support topics and reviews.

Plugin breaking groups URL (17 posts)

Started 4 months, 3 weeks ago by: nicosFR

  • Profile picture of nicosFR nicosFR said 4 months, 3 weeks ago:

    Hi,
    I installed Group Hierarchy on a fresh buddypress install (WP 3.3, BP 1.5.2, Group Hierarchy 1.2.9)

    When the plugin is activated, I’m able to create groups and subgroups. But then when me or any user wants to go to a group’s homepage, it redirects him to the groups listing page.

    Groups URL look like this. mysite.com/groups/group-nicename/
    and it redirects to mysite.com/groups/

    Works fine when I desactivate the plugin…

    Thank you for your help

  • Profile picture of mutualdesigns mutualdesigns said 4 months, 3 weeks ago:

    Reporting the same issue.

  • Profile picture of David Dean David Dean said 4 months, 3 weeks ago:

    I can’t reproduce this issue. Can you provide any more details? If possible, turn on debugging and post the “BP Group Hierarchy” lines.

  • Profile picture of David Dean David Dean said 4 months, 1 week ago:

    Is anyone still having this problem?

  • Profile picture of nicosFR nicosFR said 3 months, 4 weeks ago:

    Hi,

    Yes, still having the same issue. Here is the main error I see coming from the plugin in the debug log
    [22-Jan-2012 11:36:11] PHP Notice: Undefined property: stdClass::$parent_id in /homez.483/occupyfr/www/beta/wp-content/plugins/bp-group-hierarchy/bp-group-hierarchy-classes.php on line 43

    And here is what is outputted on the website’s header:

    BP Group Hierarchy - Routing requests for BP 1.5
    BP Group Hierarchy - Current component: groups
    BP Group Hierarchy - Current action:
    BP Group Hierarchy - Groups slug: groups
    BP Group Hierarchy - Are we on a user profile page?: N
    BP Group Hierarchy - Routing requests for BP 1.5
    BP Group Hierarchy - Current component: groups
    BP Group Hierarchy - Current action:
    BP Group Hierarchy - Groups slug: groups
    BP Group Hierarchy - Are we on a user profile page?: N
    BP Group Hierarchy - Routing requests for BP 1.5
    BP Group Hierarchy - Current component: groups
    BP Group Hierarchy - Current action:
    BP Group Hierarchy - Groups slug: groups
    BP Group Hierarchy - Are we on a user profile page?: N
    BP Group Hierarchy - Routing requests for BP 1.5
    BP Group Hierarchy - Current component: groups
    BP Group Hierarchy - Current action:
    BP Group Hierarchy - Groups slug: groups
    BP Group Hierarchy - Are we on a user profile page?: N
    class="directory groups logged-in no-js" id="bp-default">
  • Profile picture of David Dean David Dean said 3 months, 4 weeks ago:

    Thanks for the response! Can you check your wp_bp_groups table and confirm that there’s a parent_id column?

  • Profile picture of nicosFR nicosFR said 3 months, 4 weeks ago:

    No, there isn’t.
    I could create it. What data type and default value do you suggest ?

    I don’t use the default ‘wp_’ as table prefix. maybe that’s why it didn’t add the column… any other table structure I might have to check ?

  • Profile picture of David Dean David Dean said 3 months, 4 weeks ago:

    That must be it.
    The column should be: bigint(20) default 0.

    I’m not really sure how it’s happening, but the change in prefix is a great clue. I’ll dig around in the activation code and see what I can find. And that’s the only table modification, so you should be set after that.

    Let me know if you run into anything else!

  • Profile picture of tomraff tomraff said 3 months, 4 weeks ago:

    Hi David,
    I’m seeing a similar issue where BP Group Hierarchy (1.3.0) Breaks BuddyPress (1.5.3.1) – Activity, Members. Blogs, Forums etc….

    I can create a new group/subgroup with Hierarchy but get a white screen on all browsers when other BuddyPress urls are selected e.g..mysite.com/activity etc..

  • Profile picture of David Dean David Dean said 3 months, 4 weeks ago:

    @tomraff – can you provide some more details on your setup? Is this a new install? Any other plugins in use? Also, can you provide any error log messages you can find?

  • Hi David,
    I work with Tom. It was tested on a fresh install with no other plugins activated and on two different servers. Here are some error logs; on our very clean install on bluehost

    [23-Jan-2012 23:46:25] WordPress database error Duplicate key name 'parent_id' for query ALTER TABLE wp_bp_groups ADD KEYparent_id(parent_id) made by require, activate_plugin, do_action, call_user_func_array, bp_group_hierarchy_install, dbDelta

    and we get resulting WSOD on this

    on our other server we got some Dynamix theme related errors which may be related, resolved when group hierarchy was deactivated

    [Tue Jan 24 01:33:51 2012] [error] [client 91.85.187.144] PHP Warning: array_unique(): The argument should be an array in /var/www/vhosts/offshoreonshore.us/httpdocs/wp-content/themes/DynamiX2-9/lib/inc/shortcodes.php on line 572, referer: http://www.offshoreonshore.us/groups
    [Tue Jan 24 01:33:51 2012] [error] [client 91.85.187.144] PHP Warning: asort() expects parameter 1 to be array, boolean given in /var/www/vhosts/offshoreonshore.us/httpdocs/wp-content/themes/DynamiX2-9/lib/inc/shortcodes.php on line 573, referer: http://www.offshoreonshore.us/groups

    I hope that helps resolve the issue because groups hierarchy is a very important plugin for us

  • Profile picture of David Dean David Dean said 3 months, 3 weeks ago:

    @imacg – thanks! The DB error is really helpful. Are you saying you get a white screen on all non-group pages, and that the DB error you posted is recorded? Or is that one just recorded upon activation?

    As far as the Dynamix theme problem goes, I don’t really know what to tell you; I don’t have access to that theme. Are you able / permitted to provide the contents of the lines that are reporting the errors, or even just the parameters in question?

  • Profile picture of tomraff tomraff said 3 months, 3 weeks ago:

    Yes, experiencing white screens on all non-group pages, can I suggest sending access details to both our installations?…really appreciate you supporting us with this as its a key component in our project!

  • Profile picture of David Dean David Dean said 3 months, 3 weeks ago:

    Sure – david at generalthreat dot com

  • Profile picture of BlinkyBill01 BlinkyBill01 said 3 months, 3 weeks ago:

    I ran into the same issue on a test site. When i tried to visit a group page that was made before the latest BP update, the URL didn’t go anywhere. I noticed that the url also had an extra slash. (ie. groups//candy)

    All newly created groups, however, all direct to the correct page.

    So I just deleted the old test groups then created a new group with the same info. It worked. Not a great solution but at least I knew that it was something from before the most recent BP version update.