Forum Replies Created
Definitely something weird going on with roles & capabilities.
1. removing all forum entries
2. delete bbPress plugin folder
Not the best way to remove a plugin, but all seems OK
I have already checked, they are definitely in the wp_options table.
I will back-up as well as think of a way to ‘safely’ change things in that space without locking myself out.
Deleted the bbPress folder.
Plugin screen came up fine and stated bbPress was gone.
It looks like it fails when attempting to remove ‘spectate’
See log above: WP_Role->remove_cap(‘spectate’)
I was surprised as an Administrator, all the bbPress roles were read-only.
Is that normal?
As an Admin are your bbPress roles read-only?
I will delete the folder, then re-install it to then see if I can uninstall it correctly.
This was occurring before Members was installed.
I only loaded Members to see further inside users, roles and capabilities as native WordPress offers little capability of diagnosing such issues.
Happy to give you access.
How do I pm you?
Changed theme to twentytwenty
Deactivated all plugins apart from bbpress
Then tried to deactivate bbPress last … same error.
Note, the Membership plugin was uninstalled earlier.
I used the Members plugin to check the roles.
All the bbPress roles are read-only.
(As administration I was unable to edit them)
Is that correct?
I have 3 instances (dev, test & production)
Tried multiple times on all three (not multisite)
Errors were consistent
Here is the debug log:
[21-May-2020 04:26:20 UTC] PHP Fatal error: Uncaught Error: Cannot unset string offsets in /hsphere/local/home/somewhere/somewhere/wp-includes/class-wp-role.php:75
#0 /hsphere/local/home/somewhere/somewhere/wp-content/plugins/bbpress/includes/core/capabilities.php(240): WP_Role->remove_cap(‘spectate’)
#1 /hsphere/local/home/somewhere/somewhere/wp-includes/class-wp-hook.php(287): bbp_remove_caps(”)
#2 /hsphere/local/home/somewhere/somewhere/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
#3 /hsphere/local/home/somewhere/somewhere/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#4 /hsphere/local/home/somewhere/somewhere/wp-content/plugins/bbpress/includes/core/sub-actions.php(40): do_action(‘bbp_deactivatio…’)
#5 /hsphere/local/home/somewhere/somewhere/wp-includes/class-wp-hook.php(287): bbp_deactivation(false)
#6 /hsphere/local/home/somewhere/somewhere/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
#7 /hsphere/local/home/somewhere/somewhere/wp-include in /hsphere/local/home/somewhere/somewhere/wp-includes/class-wp-role.php on line 75
I also followed this: https://codex.bbpress.org/getting-started/installing-bbpress/deleting-bbpress/
and get the same fatal error:
Fatal error: Uncaught Error: Cannot unset string offsets
in /hsphere/local/home/audax/dev1.audax.org.au/wp-includes/class-wp-role.php on line 75