I just noticed the following: as a site admin I cannot change forum roles of users. I can only assign the role ‘administrator’ or ‘-nor roles for these forums-‘. No option to assign moderators or anything else.
How could this have happened @robin-w? At one point I installed buddypress, but deinstalled it again.
I already deactivated and activated bbpress and went through repair forums > default user roles. When I did the repair all users were assigned forum role ‘administrator’.
something strange going on!
I can only suggest it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
I’d start by taking out any code in your child theme’s functions file !
UPDATE:
I found the issue. 2 weeks back I added the following function to functions.php > child theme, because I wanted to rename the Keymaster to Administrator:
// change user role name 'Verwalter' to 'Administrator'
function ntwb_bbpress_custom_role_names() {
// Keymaster
bbp_get_keymaster_role() => array(
'name' => 'Administrator',
'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() )
)
}
add_filter( 'bbp_get_dynamic_roles', 'ntwb_bbpress_custom_role_names' );
It successfully renamed the role and I was done with the issue. However, it apparently removed all the other default bbpress roles. I thought this function is exclusively for renaming roles as the name suggests.
I went back and included all other default roles into that function in the child theme (The complete rename roles function can be seen eg here.) Now I see all roles in settings > forum > automatically assign roles. Also in user management I see all forum roles. Also, new forum registrants are automatically assigned to subscriber.
problem solved.
yes renaming a role to an existing role would lead to all sorts of unexpected things
ok. issue resolved. thank you very much