• Resolved digitalchannel

    (@digitalchannel)


    Hi,

    I suddenly faced the following PHP error on my page forcing me to deactivate wordfence. Any ideas what the causes may be and how I can fix it? It ssems to be triggerd by Wordfence “Permission Controller”

    AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Cannot unset string offsets in [o]/wp-includes/class-wp-roles.php:232\nStack trace:\n#0 [o]/wp-content/plugins/wordfence/modules/login-security/classes/controller/permissions.php(272): WP_Roles->remove_cap('cr-approver', 'wf2fa_activate_...')\n#1 [o]/wp-content/plugins/wordfence/modules/login-security/classes/controller/permissions.php(259): WordfenceLS\\Controller_Permissions->_remove_cap('cr-approver', 'wf2fa_activate_...', Object(WP_Roles))\n#2 [o]/wp-content/plugins/wordfence/modules/login-security/classes/controller/permissions.php(158): WordfenceLS\\Controller_Permissions->_remove_cap_multisite('cr-approver', 'wf2fa_activate_...', Array)\n#3 ...'

    Best
    Clemens

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @digitalchannel, thanks for getting in touch about this.

    I’ve not seen this specific error message come up for Wordfence, although it does seem to be caused when the expected data type doesn’t match the one the code is looking for. The initial message seems to suggest some functions around 2FA so have you recently enabled or disabled any Login Security features or other settings that may be of note within the plugin?

    Sometimes reinstalling the plugin can rectify the issue if this error is being caused by an incomplete or outdated file from a recent attempted plugin auto-update. Please refer to this page if you don’t want to lose your settings during an attempted reset: https://www.wordfence.com/help/advanced/remove-or-reset/

    Let me know how you get on!
    Peter.

    Thread Starter digitalchannel

    (@digitalchannel)

    Hi Peter,

    thanks for your support. I removed wordfence completely based on your guidelines and reinstalled it. Unfortunately, the same error occurs again right after the activation of the plugin.

    Anly further ideas?

    We were quite satisfied with wordfence until recently. Put a lot of trust in your solution. Would be a shame if we had to cancel our subscription.

    Best Clemens

    Plugin Support wfpeter

    (@wfpeter)

    Hi @digitalchannel,

    Am I right in saying you’re a premium customer when you mention subscription? If so, you’re entitled to open with your license to open a support ticket at https://support.wordfence.com where they’ll be able to get to your case faster.

    You can also access premium support via the Help menu item in the plugin, Help link on the plugin’s Dashboard page, on our documentation homepage or via the HELP link in the footer of all wordfence.com pages.

    =======

    If that’s not the case and I’ve misunderstood, please send me a diagnostic report to see if there are any clear configuration issues that might be causing this problem. Please send it to wftest @ wordfence . com. Click on “Send Report by Email”. Please add your forum username where indicated and respond here after you have sent it.

    NOTE: It should look as follows – Screenshot of Tools > Diagnostic > Send by Email

    Thanks again,
    Peter.

    Thread Starter digitalchannel

    (@digitalchannel)

    Thanks yes, we have a premium license. I will try it with a ticket – however, I will not be able to send any diagnostics since wordfence simply doesnt work. I cannot active the plugin, otherwise my site crashes.

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

The topic ‘PHP offset Error caused by Wordfence’ is closed to new replies.