Skip to:
Content
Pages
Categories
Search
Top
Bottom

Unable to Manage Group Members


  • pgrafix
    Participant

    @pgrafix

    All of a sudden I can no longer manage users of a specific group, whether from the front end or back end. The manage-members page loads fine, but the member list is blank. The member count is correct in the back end and are all present in the DB. Members can also still access the group. Member management of other groups is unaffected. Depending on the browser, I get different console errors:

    Chrome:

    Uncaught TypeError: Cannot read properties of undefined (reading ‘name’)
    at eval (eval at template (underscore.min.js?ver=1.13.1:2:15327), <anonymous>:29:18)
    at n (underscore.min.js?ver=1.13.1:2:15407)
    at n.template (wp-util.min.js?ver=350dcb35f552474cc66408105b81368d:2:323)
    at n.render (wp-backbone.min.js?ver=350dcb35f552474cc66408105b81368d:2:2893)
    at wp.Backbone.Subviews.<anonymous> (wp-backbone.min.js?ver=350dcb35f552474cc66408105b81368d:2:2140)
    at underscore.min.js?ver=1.13.1:2:6433
    at Function.dr (underscore.min.js?ver=1.13.1:2:9528)
    at wp.Backbone.Subviews._attach (wp-backbone.min.js?ver=350dcb35f552474cc66408105b81368d:2:2101)
    at wp.Backbone.Subviews.set (wp-backbone.min.js?ver=350dcb35f552474cc66408105b81368d:2:884)

    FF (underscore.min.js:29:1):

    Uncaught TypeError: data.role is undefined
    Underscore 2
    template https://mydomain/wp-includes/js/wp-util.min.js?ver=350dcb35f552474cc66408105b81368d:2
    Backbone 2
    Underscore 2
    Backbone 3
    addListTableRows Ember
    Underscore 2
    addListTableRows Ember
    Backbone 5
    initialize Ember
    Backbone 4
    initialize Ember
    Backbone 4
    Ember 2
    underscore.min.js:29:1

    Safari:

    TypeError: undefined is not an object (evaluating ‘data.role.name’)
    anonymous (Anonymous Script 1 (line 28))
    n (underscore.min.js:2:15412)
    (anonymous function) (wp-util.min.js:2:324)
    render (wp-backbone.min.js:2:2902)
    (anonymous function) (wp-backbone.min.js:2:2147)
    (anonymous function) (underscore.min.js:2:6438)
    dr (underscore.min.js:2:9530)
    _attach (wp-backbone.min.js:2:2106)
    set (wp-backbone.min.js:2:892)
    add (wp-backbone.min.js:2:1005)
    (anonymous function) (manage-members.min.js:1:8475)
    (anonymous function) (underscore.min.js:2:6438)
    dr (underscore.min.js:2:9530)
    addListTableRows (manage-members.min.js:1:8439)
    p (backbone.min.js:2:3194)
    f (backbone.min.js:2:2931)
    a (backbone.min.js:2:843)
    (anonymous function) (backbone.min.js:2:2815)
    reset (backbone.min.js:2:10387)
    initialize (manage-members.min.js:1:8226)
    (anonymous function) (backbone.min.js:2:14145)
    constructor (wp-backbone.min.js:2:2606)
    (anonymous function) (backbone.min.js:2:23432)
    (anonymous function) (backbone.min.js:2:23432)
    initialize (manage-members.min.js:1:9254)
    (anonymous function) (backbone.min.js:2:14145)
    constructor (wp-backbone.min.js:2:2606)
    (anonymous function) (backbone.min.js:2:23432)
    (anonymous function) (backbone.min.js:2:23432)
    (anonymous function) (manage-members.min.js:1:9325)
    Global Code (manage-members.min.js:1:9369)

    I have:

    1. Tested for plugin conflicts. Even stripped down to just BP running, error persists.
    2. Tested for theme issues. Error persists.
    3. Disabled bp-custom. Error persists.
    4. Restored theme functions.php to default. Error persists.
    5. Nothing in the server error logs.

    Not sure where to turn next. Went as far as to update all plugins and theme on a staging version but no change. I really don’t want to have to recreate the group – it has private docs assigned to it.

    EDIT: I have found that if I remove the last members to be added (7 total) from the database that the list is restored. However, if I add even one of them back, the list disappears again. Adding any other non-member WP user that is not a part of the seven I deleted from the DB works fine.

    WP 5.9.3
    BP 10.4.0
    Link to site wouldn’t be useful as all of the groups are set to private or hidden. Can potentially provide access privately.

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

  • pgrafix
    Participant

    @pgrafix

    Updated site to WP 6.0.2. Still having the same issue. Key issue is in the EDIT section I posted in my OP above.


    pgrafix
    Participant

    @pgrafix

    Have traced the issue to line 89 of /buddypress/bp-templates/bp-nouveau/buddypress/common/js-templates/group-members/index.php

    88 <# if ( ! data.editing  && ! data.managingBan && ! data.removing ) { #>
    89			{{data.role.name}}
    90		<#} else {

    If I remove {{data.role.name}} the list of members is restored in both the front and back end. I have restored the code for now since it is this block of code that lists the members’ role in the group when viewing the group member list.


    pgrafix
    Participant

    @pgrafix

    Since this appears to be a bug and have yet to get a response here, I have created a ticket (https://buddypress.trac.wordpress.org/ticket/8752)


    pgrafix
    Participant

    @pgrafix

    This is still an issue, even after updating to BP 11.1.0.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar