• Hello guys,

    A weird error happened to me today.
    I’m trying to fix it, but im still investigating the cause.
    Just sending this FYI.

    Disabling Wordfence removes the error.
    Environment:
    Linux (ubuntu)
    PHP 7.4.12
    MySQL 5.7
    WP 5.5.3

    Here’s some log lines:

    Warning: Invalid argument supplied for foreach() in /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wfAdminNoticeQueue.php on line 22

    Notice: A non well formed numeric value encountered in /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wfAdminNoticeQueue.php on line 42

    Notice: Array to string conversion in /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wfAdminNoticeQueue.php on line 42

    Notice: A non well formed numeric value encountered in /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wfAdminNoticeQueue.php on line 48

    Fatal error: Uncaught Error: Cannot use string offset as an array in /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wfAdminNoticeQueue.php:48 Stack trace: #0 /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wordfenceClass.php(6121): wfAdminNoticeQueue::addAdminNotice() #1 /–PATH-REMOVED–/wp-includes/class-wp-hook.php(287): wordfence::admin_menus() #2 /–PATH-REMOVED–/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters() #3 /–PATH-REMOVED–/wp-includes/plugin.php(478): WP_Hook->do_action() #4 /–PATH-REMOVED–/wp-admin/includes/menu.php(155): do_action() #5 /–PATH-REMOVED–/wp-admin/menu.php(327): require_once(‘/home/…’) #6 /–PATH-REMOVED–/wp-admin/admin.php(158): require(‘/home/…’) #7 /–PATH-REMOVED–/wp-admin/plugins.php(10): require_once(‘/home/…’) #8 {main} thrown in /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wfAdminNoticeQueue.php on line 48
    Há um erro crítico no seu site. Verifique seu e-mail para instruções.

    Warning: Invalid argument supplied for foreach() in /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wfAdminNoticeQueue.php on line 22

    Warning: Illegal string offset ‘a9d437ef-4100-49c0-a58c-25e5442e4865’ in /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wfAdminNoticeQueue.php on line 42

    Notice: Array to string conversion in /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wfAdminNoticeQueue.php on line 42

    Warning: Illegal string offset ‘a9d437ef-4100-49c0-a58c-25e5442e4865’ in /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wfAdminNoticeQueue.php on line 48

    Fatal error: Uncaught Error: Cannot use string offset as an array in /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wfAdminNoticeQueue.php:48 Stack trace: #0 /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wordfenceClass.php(6121): wfAdminNoticeQueue::addAdminNotice() #1 /–PATH-REMOVED–/wp-includes/class-wp-hook.php(287): wordfence::admin_menus() #2 /–PATH-REMOVED–/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters() #3 /–PATH-REMOVED–/wp-includes/plugin.php(478): WP_Hook->do_action() #4 /–PATH-REMOVED–/wp-admin/includes/menu.php(155): do_action() #5 /–PATH-REMOVED–/wp-admin/menu.php(327): require_once(‘/home/…’) #6 /–PATH-REMOVED–/wp-admin/admin.php(158): require(‘/home/…’) #7 /–PATH-REMOVED–/wp-admin/index.php(10): require_once(‘/home/…’) #8 {main} thrown in /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wfAdminNoticeQueue.php on line 48

    Warning: Invalid argument supplied for foreach() in /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wfAdminNoticeQueue.php on line 22

    Warning: Illegal string offset ‘a3d705be-7d7d-4c74-ac29-24ca514d69d6’ in /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wfAdminNoticeQueue.php on line 42

    Notice: Array to string conversion in /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wfAdminNoticeQueue.php on line 42

    Warning: Illegal string offset ‘a3d705be-7d7d-4c74-ac29-24ca514d69d6’ in /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wfAdminNoticeQueue.php on line 48

    Fatal error: Uncaught Error: Cannot use string offset as an array in /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wfAdminNoticeQueue.php:48 Stack trace: #0 /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wordfenceClass.php(6121): wfAdminNoticeQueue::addAdminNotice() #1 /–PATH-REMOVED–/wp-includes/class-wp-hook.php(287): wordfence::admin_menus() #2 /–PATH-REMOVED–/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters() #3 /–PATH-REMOVED–/wp-includes/plugin.php(478): WP_Hook->do_action() #4 /–PATH-REMOVED–/wp-admin/includes/menu.php(155): do_action() #5 /–PATH-REMOVED–/wp-admin/menu.php(327): require_once(‘/home/…’) #6 /–PATH-REMOVED–/wp-admin/admin.php(158): require(‘/home/…’) #7 /–PATH-REMOVED–/wp-admin/index.php(10): require_once(‘/home/…’) #8 {main} thrown in /–PATH-REMOVED–/wp-content/plugins/wordfence/lib/wfAdminNoticeQueue.php on line 48

    Thanks
    Isaque

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Isaque Fernandes

    (@sp1ke77)

    UPDATE:
    – Used Wordfence Assistant plugin to delete all WF tables and reactivated the WF plugin after without issues.
    – Seems it was some configuration in one of the tables.

    Plugin Support wfpeter

    (@wfpeter)

    Hi @sp1ke77,

    Thanks for reporting this issue and the steps you have taken to resolve it in case other users experience the same situation. It is not clear whether the recent WordPress 5.5.3 Alpha update, or the installation of another plugin may have caused this to occur based on the info provided, but I’m really pleased to see that the Wordfence assistant was able to help resolve it. Here’s some more info you might find interesting:

    https://www.wordfence.com/blog/2020/10/emergency-wp-5-5-3-release/

    If you ever have any other questions regarding Wordfence, by all means start a new topic and we’ll be glad to help any time.

    Peter.

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

The topic ‘Fatal error: Uncaught Error: Cannot use string offset as an array’ is closed to new replies.