Skip to:
Content
Pages
Categories
Search
Top
Bottom

Plugin breaking groups URL

  • Avatar of nicosFR
    nicosFR
    Participant

    @nicosfr

    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

Viewing 17 replies - 1 through 17 (of 17 total)
  • Avatar of mutualdesigns
    MutualDesigns
    Member

    @mutualdesigns

    Reporting the same issue.

    Avatar of David Dean
    David Dean
    Participant

    @ddean

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

    Avatar of David Dean
    David Dean
    Participant

    @ddean

    Is anyone still having this problem?

    Avatar of nicosFR
    nicosFR
    Participant

    @nicosfr

    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”>`

    Avatar of David Dean
    David Dean
    Participant

    @ddean

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

    Avatar of nicosFR
    nicosFR
    Participant

    @nicosfr

    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 ?

    Avatar of David Dean
    David Dean
    Participant

    @ddean

    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!

    Avatar of tomraff
    tomraff
    Participant

    @tomraff

    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..

    Avatar of David Dean
    David Dean
    Participant

    @ddean

    @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 KEY `parent_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

    Avatar of David Dean
    David Dean
    Participant

    @ddean

    @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?

    Avatar of tomraff
    tomraff
    Participant

    @tomraff

    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!

    Avatar of David Dean
    David Dean
    Participant

    @ddean

    Sure – david at generalthreat dot com

    Avatar of BlinkyBill01
    BlinkyBill01
    Participant

    @blinkybill01

    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.

    Avatar of tomraff
    tomraff
    Participant

    @tomraff

    Hi David,
    I got this back from the Theme Developers @CreativeWorkz…..

    “After some SERIOUS trial and error – this following line of code is causing the problem. It seems the BP GH plugin doesn’t like this – can you send it onto them so they know as it’s quite key.

    Remove the following from DynamiX/functions-buddypress.php “

    /* Added so BuddyPress can take care of page titles on BuddyPress pages */
    if (!bp_is_blog_page() ) {
    add_action( ‘wp_title’, ‘bp_get_page_title’);
    }

    Hope this helps?

    Avatar of David Dean
    David Dean
    Participant

    @ddean

    @tomraff – are you still using BP 1.2.x? The `bp_get_page_title` function was deprecated with BP 1.5.

    I’ll try changing the part of Group Hierarchy that checks for the deprecated `bp_page_title` filter to be a strict version check, but I only call it when in the groups component, so I don’t know how it could be affecting non-group pages.

    Avatar of Dale-Brown
    Dale-Brown
    Member

    @dale-brown-1

    Tomraffs fix above worked for my install. For the newbies like me out there, make sure you check your dynamix child theme directory for the functions-buddypress.php file first and save yourself a few minutes of scratching your heads. :)

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

You must be logged in to reply to this topic.