thomasprice61 (@thomasprice61)

Forum Replies Created

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

  • thomasprice61
    Participant

    @thomasprice61

    Hi Robin,
    Definitely something weird going on with roles & capabilities.
    Ended up:
    1. removing all forum entries
    2. delete bbPress plugin folder

    Not the best way to remove a plugin, but all seems OK

    thank you


    thomasprice61
    Participant

    @thomasprice61

    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.

    thanks


    thomasprice61
    Participant

    @thomasprice61

    Hi Robin,
    Deleted the bbPress folder.
    Plugin screen came up fine and stated bbPress was gone.
    Reinstalled bbPress
    Same issue.

    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?


    thomasprice61
    Participant

    @thomasprice61

    I will delete the folder, then re-install it to then see if I can uninstall it correctly.

    thanks


    thomasprice61
    Participant

    @thomasprice61

    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?


    thomasprice61
    Participant

    @thomasprice61

    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.


    thomasprice61
    Participant

    @thomasprice61

    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?


    thomasprice61
    Participant

    @thomasprice61

    correct.
    I have 3 instances (dev, test & production)
    Tried multiple times on all three (not multisite)

    Errors were consistent


    thomasprice61
    Participant

    @thomasprice61

    No.
    I’m on WordPress 5.4.1


    thomasprice61
    Participant

    @thomasprice61

    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
    Stack trace:
    #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


    thomasprice61
    Participant

    @thomasprice61

    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

    Call stack:

    WP_Role::remove_cap()
    wp-content/plugins/bbpress/includes/core/capabilities.php:240
    bbp_remove_caps()
    wp-content/plugins/bbpress/includes/admin/tools/reset.php:262
    bbp_admin_reset_database()
    wp-content/plugins/bbpress/includes/admin/tools/reset.php:100
    bbp_admin_reset_handler()
    wp-includes/class-wp-hook.php:287
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:311
    WP_Hook::do_action()
    wp-includes/plugin.php:478
    do_action()
    wp-admin/admin.php:232
    require_once()
    wp-admin/tools.php:40

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