Skip to:
Content
Pages
Categories
Search
Top
Bottom

Roles being reset every now and then

  • @joopstringer

    Participant

    Hi guys,

    Some of my users their roles keep on getting reset.
    I set them back to what it needs to be and some of them only last a day, others seem to last two/three days and then they are reset again.

    I also use WP eMember plugin …

    Hope somebody can help me !

Viewing 3 replies - 1 through 3 (of 3 total)
  • @robin-w

    Moderator

    hmmm, not heard of this in bbpress, I’d suspect emember is having issues with bbpress

    @joopstringer

    Participant

    How could that be … there’s no change in the members what so ever and every now and then the forum role gets reset to the basic forum role.

    Where’s this information stored in the database ?
    That way I can give it a go with the eMember plugin company ….

    @robin-w

    Moderator

    bbpress stores its role in the same array as wordpress roles

    ie in

    usermeta[‘wp_capabilities’]

    and an entry looks like

    a:2:{s:13:”administrator”;s:1:”1″;s:13:”bbp_keymaster”;b:1;}

    with admin being the wordpress role and bbp_keymaster being the bbpress role.

    A pure wordpress user would look like

    a:1:{s:13:”administrator”;s:1}

    Now, and this is probably key, when a users registers they just get the wordpress role. When they then log on bbpress sees that it has no role set, so assigns the default role.

    Now if emember is writing info to wp_capabilities, it could be overwriting part or the entire array (so by mistake deleting the bbpress role) or appending to it so that bbpress no longer sees it’s role. Then when the user next logs on, bbpress will see no role set, and set it back to the default.

    This could explain why users would be going back to default

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