WordPress.org

Ready to get started?Download WordPress

Forums

Group Documents
Can't get it working with BP 1.5 RC1 (58 posts)

  1. Krokkodriljo
    Member
    Posted 2 years ago #

    Did anyone get this plugin working with BP 1.5 RC1?

    The tab option "Documents" is not showing on group pages and I'm guessing bp_core_new_subnav_item() or related functions have been changed.

    The admin option tab is there however, linking to /groups/[groupname]/admin/documents/

    I tried to manually enter /groups/[groupname]/documents/ but no luck... it's a 404.

    Cheers,
    Johan

    http://wordpress.org/extend/plugins/buddypress-group-documents/

  2. jimmytortuga
    Member
    Posted 2 years ago #

    Confirm that. The "Documents" tab disappeared from my group pages when I updated to 1.5.

    The documents are still there, though, as I can access them through external links.

    From there, I can see the actual route is http://mysite.com/wp-content/uploads/group-documents/... and then a long string of numbers which I think is the file name assigned to it by GD. Unless you know what it is, you won´t be able to access them through your browser; but you might find them using this route in your ftp file manager.

    At any rate I hope GD is updated real soon, I just finished loading course material into my course´s group yesterday, and now its totally useless without the tab.

  3. Krokkodriljo
    Member
    Posted 2 years ago #

    I suppose the changes made to how the group menus are manipulated are explained here: http://bpdevel.wordpress.com/2011/09/05/manually-modifying-single-group-navigation-in-bp-1-5/

    Unfortunately, I don't know php good enough to fix the plugin.

  4. Krokkodriljo
    Member
    Posted 2 years ago #

    I might have fixed it

    1. Open buddypress-group-documents/index.php
    2. Around line 248:

    Change:

    'parent_slug' => $bp->groups->slug,

    to:

    'parent_slug' => bp_get_current_group_slug(),

    3. Around line 259

    Change

    add_action( 'wp', 'bp_group_documents_setup_nav', 10 );

    To:

    add_action( 'bp_setup_nav', 'bp_group_documents_setup_nav', 10 );

  5. Krokkodriljo
    Member
    Posted 2 years ago #

    Okay, I managed to get the Document option showing in the group menu but uploading files doesn't work.

    The form's action path (set by $template->action_link) is incorrect.

    $template->action_link is defined here

    $this->action_link = get_bloginfo('url') . '/' . $bp->current_component . '/' . $bp->current_item . '/' . $bp->current_action . '/';

    ...and "$bp->current_component" is incorrect. It says "groups" but I have changed the group slug like so:

    define( 'BP_GROUPS_SLUG', 'verksamhetsgrupper' );

    Suggestions?

  6. Krokkodriljo
    Member
    Posted 2 years ago #

    Upload works when I hard coded the URL.

    I also had to modify cssjs.php in order to enqueue the css and javascript files.

    Where are you @peter-anselmo, we need you!

  7. Peter Anselmo
    Member
    Plugin Author

    Posted 2 years ago #

    Okay, Fired up the 1.5, looking into it now.

  8. Peter Anselmo
    Member
    Plugin Author

    Posted 2 years ago #

    The Development Version has been updated with some changes. Anyone who knows what that means is welcome to give it a whirl. I hope to have a new release out soon.

    Cheers,
    Peter

  9. Peter Anselmo
    Member
    Plugin Author

    Posted 2 years ago #

    Just tagged 0.4.0 as Stable. Requires BP version 1.5. If you're running an earlier version, don't upgrade Group Docs.

    Cheers,
    PEter

  10. jimmytortuga
    Member
    Posted 2 years ago #

    Just tried v.0.4.0. The "documents" tab appears again - OK - but now the problem is that when I click on it, it says it can´t find the page http://mysite.com/groups/mygroup/documents/ : it just says "page not found". Therefore, I STILL can´t see the uploaded documents or upload new documents. Please help...

  11. Peter Anselmo
    Member
    Plugin Author

    Posted 2 years ago #

    @jimmytortuga
    Oh Noes! If you can, could you send me an email to peter@studio66design.com? Good stuff to include would be your wordpress version, an example URL, and any customisations (such as slugs defined in bp-config.

    Cheers,
    Peter

  12. AlbertFR
    Member
    Posted 2 years ago #

    I've the same problem "page not found" on a fresh install wp 3.2.1 bp 1.5 and group documents 0.4

    I'm using private groups (for information)

  13. AlbertFR
    Member
    Posted 2 years ago #

    I've find why

    on bp 1.5 the community menu is not longer valid
    i've re-create it, and put forums, groups and users in subs menus

    your plugin don't understand that, and the 404 error appear

    that's all

  14. WebEndev
    Member
    Posted 2 years ago #

    I've the same problem "page not found" on a fresh install wp 3.2.1 bp 1.5 and group documents 0.4

    Same problem here

  15. devotee
    Member
    Posted 2 years ago #

    I got the same problem aswell, on a fresh install, the documents tab shows up but the link doesnt work. 404. Did anyone solve this yet?

  16. weetouches
    Member
    Posted 2 years ago #

    For my case the problem was the permalink of User Groups page

    If you go in the buddypress menu and the page menu.

    In the User Groups section, check what is the selected page. After that, go in the page menu of wordpress and check the permalink of this page.

    My problem was
    http://bla-bla-bla/groups-2

    It must be for the plugin group document to work correctly
    http://bla-bla-bla/groups

  17. WebEndev
    Member
    Posted 2 years ago #

    @weetouches

    In my case, the page set for User Groups in the BuddyPress menu is 'Groups'.
    When I check the permalink for the Groups page, it is http://bla-bla/groups and this is correct.

    Yet I still get a 404 when I select the Documents link within a group.

    So this wasn't the fix for me, and it is still a problem.
    I wounder where the developer for the plugin is?
    Thanks for your help though.

  18. karl19
    Member
    Posted 2 years ago #

    We're getting a similar problem (I think), ending up with a 404 page. The reason for this, is that all our BP pages are sub-pages, so our structure is something like:

    site.com/community/activity/
    site.com/community/groups/

    But the "Group Documents" plugin doesn't pick up that groups is on a sub-page and the link becomes:

    site.com/groups/my-group/documents/

    when it should be:

    site.com/community/groups/my-group/documents/

    All the other group specific links in the menu are fine (forum, events, members etc). Would be great if anyone has any tips on how this can be fixed.

    There is also a HTML error in index.php on line #423, where the input tag isn't closed.

  19. WebEndev
    Member
    Posted 2 years ago #

    The reason for this, is that all our BP pages are sub-pages, so our structure is something like:

    site.com/community/activity/
    site.com/community/groups/

    Yep, mine too.

    But the "Group Documents" plugin doesn't pick up that groups is on a sub-page and the link becomes:

    site.com/groups/my-group/documents/

    when it should be:

    site.com/community/groups/my-group/documents/

    All the other group specific links in the menu are fine (forum, events, members etc).

    Yes, I agree. I think this is the problem.

  20. valboire
    Member
    Posted 2 years ago #

    Nobody has a solution yet to this "Page Not Found" on a fresh install, the documents tab shows up but the link doesnt work.

  21. valboire
    Member
    Posted 2 years ago #

    After rereading the post this solution worked for us as well :
    For my case the problem was the permalink of User Groups page

    If you go in the buddypress menu and the page menu.

    In the User Groups section, check what is the selected page. After that, go in the page menu of wordpress and check the permalink of this page.

    My problem was
    http://bla-bla-bla/groups-2

    It must be for the plugin group document to work correctly
    http://bla-bla-bla/groups

    But we still have a problem with the categories that are not saved when uploading a new doc.

    Thanks for any help or redirection

  22. Flynxify
    Member
    Posted 2 years ago #

    Like Krokkodriljo I can only get this to work with custom slugs if I hardcode them into the code; I am using "projekte" instead of "groups":

    1. index.php on line 209

    Instead of
    $groups_link = $bp->root_domain . '/' . $bp->groups->slug . '/';
    I have
    $groups_link = $bp->root_domain . '/' . 'projekte' . '/';

    2. templatetags.php on line 271

    Instead of
    $this->action_link = get_bloginfo('url') . '/' . $bp->current_component . '/' . $bp->current_item . '/' . $bp->current_action . '/';
    I have
    $this->action_link = get_bloginfo('url') . '/' . 'projekte' . '/' . $bp->current_item . '/' . $bp->current_action . '/';

    I suppose this isn't really all that sexy but after hours of poking around in the code I figured this would be as good as any solution.

  23. mtalbert
    Member
    Posted 2 years ago #

    I have this same issue when I changed my 'groups' slug to 'projects'. To solve this easily and not modify the plugin source I added a new redirection rule in the Redirection plugin.

    I added a regular expression rule /groups(/.*) that redirects to my slug path, /projects$1. You can replace 'projects' with your chosen slug name. This rule will work for anything that follows '/groups' so that if other URLs are suffering from this same issue it will fix those as well.

    If you are already using a redirection plugin like the one linked above, this simple fix will make your documents work without needing to modify the plugin source, which may get overwritten the next time the plugin updates. Hope this helps.

  24. mtalbert
    Member
    Posted 2 years ago #

    Well my above fix using redirection only allows the page to display. Another method that works to fix the page being displayed is to define your new slug in the wp-config.php file such as define('BP_GROUPS_SLUG', 'projects');.

    However, using either of these methods does not allow the uploads to actually occur. After putting in your file information and submitting the form it will direct to an incorrect page.

    I tried the fix offered by @Flynxify and that worked great.

  25. Flynxify
    Member
    Posted 2 years ago #

    I think you can't manually define the slugs in the wp-config or bp-custom anymore in BuddyPress 1.5.x using

    define('BP_GROUPS_SLUG', 'projects');

    so the plugin-devs have to use the correct functions to retrieve the current slugs that have been set in the dashboard. Or maybe it's a BP-bug. Who knows! Certainly not me :)
    With these problems I just use the pragmatical solutions now before I delve into the depths of the (horribly documented) BuddyPress API.

  26. Brian Bowman
    Member
    Posted 2 years ago #

    OK, so bottom line. We've all installed this BP Groups Document plugin...and it doesn't work! How frustrating.

    @peter-anselmo .. are you even reading this information? Thought this was a stable install...?

    I'm using BP 1.5.2 with WP 3.3. I too am experiencing a page not found error when I click on the DOCUMENTS tab from within a group (as in here: http://www.networkit.com/tvhra/our-community/groups/tvhra/ ) I get a PAGE NOT FOUND error. You can see it for yourself here: http://www.networkit.com/tvhra/groups/tvhra/documents/

    Please advise ASAP on how to use this program, or how we can work around this obvious bug until you fix it.

    Thanks.

  27. Flynxify
    Member
    Posted 2 years ago #

    @topracer

    You do see for yourself where the problem is though, right?

    Your group-pages are located at
    http://www.networkit.com/tvhra/our-community/groups/job-seeker-support/

    While the group document-link targets
    http://www.networkit.com/tvhra/groups/job-seeker-support/documents/

    The problem is the missing "our-community"-slug, that you'll just have to add to the two places I pointed out earlier.
    It's rather easy to just fix it yourself quickly so you don't have to wait for an "official" fix. We're all hobbyists - chill ;)

  28. Brian Bowman
    Member
    Posted 2 years ago #

    @Flynxify

    Some of us are far less comfortable messing around with code than you are. You obviously understand code. I don't think asking for the author's involvement on a fix after two months is asking for too much do you?

    Secondly, we are NOT all hobbyists. For my part, this is a business enterprise, so timeliness is somewhat important.

    I am not comfortable with your solution, nor what changes I may lose even if I were to perform your recommended update. I have a Multisite version of WP, plus BP 1.5.2 - so, not sure what impact your recommendations would have either. Having said that, thanks for your input.

    Guess I'll just have to deactivate the plugin for now until it's proven working again.

  29. petergriffyn
    Member
    Posted 2 years ago #

    @topracer

    You might want to show some gratitude for free, open source software.

  30. Brian Bowman
    Member
    Posted 2 years ago #

    It's a love/hate thing with open source. Mostly love - sorry if I'm coming across as ungrateful. I am grateful for the plugins that are more professionally supported...and think frankly they should have a minimum payment fee of some sort. I'd pay it.

    Just wish FREE worked better :-) .... or that the author (not just this plug-in) would post something like NO LONGER SUPPORTING THIS PLUGIN....or EXPECT 30-60 DAY TURN AROUND TIME AS I'M PRE-OCCUPIED WITH A JOB.

    I'd be fine with that as it least gives us the heads-up not to go too deep on a project with it...or, proceed at your own risk so to speak. I'm not a PHP programmer, so it can be very time consuming when doesn't work. Would be happier in this case to pay for a product that works...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic