• Resolved eelziere

    (@eelziere)


    Hi everybody,

    Here are my installation details:

    WordPress 4.4.2
    BuddyPress 2.4.3
    BuddyPress Group Hierarchy 1.4.3
    BuddyPress Docs 1.8.8
    BuddyPress bbPress 2.5.8

    On the frontend:
    1. Login in
    2. My Groups tab / One group link / Docs tab / Create or Edit link
    3. Associated Group section / select any existing group (i.e. associated item) in the list
    4. Save your doc

    On the backend:
    1. BP Docs menu / All Docs option
    2. Edit the doc you created or edited on the frontend
    3. The list of the doc associated items (on the right side) contains 2 groups with the same name: a new one checked and the one selected on the frontend not checked ???
    4. BP Docs menu / Associated Items option
    5. The list of the existing associated items contains 2 groups with the same name: the second one has been added when creating or editing the doc on the front end ???
    6. Delete this added associated item
    7. Edit again the doc you created or edited on the frontend
    8. In the doc associated items (on the right side), check the correct group (evezntually check other groups).
    9. Update your doc

    On the frontend:
    1. Edit again your doc
    2. Associated Group section / the value selected in the list is None ???

    What am I missing? Any clue?
    Thanks for your help.

    Cheers,
    Eric.

    https://www.ads-software.com/plugins/buddypress-docs/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author David Cavins

    (@dcavins)

    Hi eelziere-

    It sounds like you are describing duplicated taxonomy terms, which is not something I’ve run into before.

    Group terms are created at the time of save (from the front end only) but should be able to be applied in wp-admin, although admittedly, the plugin is designed to be primarily used from the front end.

    From wp-admin, you can see a list of terms by clicking Docs > Associated items. Are you seeing two terms in that list for the same group? If that’s the case, you could manually fix it using https://www.ads-software.com/plugins/term-management-tools/ and see if it was a one-time oddity or if there’s something persistently going wrong.

    Are you using any other plugins that might be affecting creation or application of taxonomy terms?

    Thread Starter eelziere

    (@eelziere)

    Hi,

    As mentioned above:
    5. The list of the existing associated items contains 2 groups with the same name: the second one has been added when creating or editing the doc on the front end ???

    I do not see how this tool could fix the problem as I have no post categories, except the Ungategorized one.

    I am using quite many other plugins but I have no idea if one of them is dealing with taxinomy terms…

    Plugin Author David Cavins

    (@dcavins)

    I think both of your support threads are the same problem. Well, at least I hope so. ??

    My first guess is that the duplicated terms are causing a problem. The plugin I suggested is used to merge terms and applies to any taxonomy. See this image of me using it on BP Docs’ associated tax: https://imgur.com/tdrfkgk

    If you can merge the terms and make sure that they have the proper slugs, that would be a good first step. BP Docs relies on the slug of the terms to find and set it (and avoid creating duplicates), like:
    $item_term = get_term_by( 'slug', 'bp_docs_associated_group_3', 'bp_docs_associated_item' ); so the slugs are really important. It also means that they should have unique slugs, because your groups have a unique ID.

    Let me know how it goes.

    Plugin Author David Cavins

    (@dcavins)

    By the way, what do the slugs look like on your duplicated terms?

    Thread Starter eelziere

    (@eelziere)

    I will give a try with your Term Management Tools plugin.

    Plugin Author David Cavins

    (@dcavins)

    Any luck with your problem?

    Thread Starter eelziere

    (@eelziere)

    Yes, once removing all the associated items visible on the backend side, once passing through all the documents to assign them a group on the frontend side, then all the correct associated items are created only once and everything works fine: documents keep attached to their group (one or several). All the symptoms described at the beginning of this discussion have vanished.

    We had to close our site for a couple of hours to clean everything, but the result is there!

    Thanks for your help.

    Thread Starter eelziere

    (@eelziere)

    Creating associated items on the backend side seems to be dangerous or buggy. We decided to remove manage_categories capability to some of our user roles, in order to “hide” this functionality to the corresponding users.

    Plugin Author David Cavins

    (@dcavins)

    Thanks for the update!

    Sorry you had a headache getting things resolved.

    -David

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Duplicated Associated Group’ is closed to new replies.