Title: Fatal error: Uncaught Error: Cannot use string offset as an array
Last modified: October 31, 2020

---

# Fatal error: Uncaught Error: Cannot use string offset as an array

 *  Resolved [Isaque Fernandes](https://wordpress.org/support/users/sp1ke77/)
 * (@sp1ke77)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-cannot-use-string-offset-as-an-array/)
 * 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
    -  This topic was modified 5 years, 7 months ago by [Isaque Fernandes](https://wordpress.org/support/users/sp1ke77/).
    -  This topic was modified 5 years, 7 months ago by [Isaque Fernandes](https://wordpress.org/support/users/sp1ke77/).

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

 *  Thread Starter [Isaque Fernandes](https://wordpress.org/support/users/sp1ke77/)
 * (@sp1ke77)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-cannot-use-string-offset-as-an-array/#post-13606149)
 * 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.
    -  This reply was modified 5 years, 7 months ago by [Isaque Fernandes](https://wordpress.org/support/users/sp1ke77/).
 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-cannot-use-string-offset-as-an-array/#post-13609650)
 * Hi [@sp1ke77](https://wordpress.org/support/users/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/](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.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-cannot-use-string-offset-as-an-array/#post-13609650)
 * Status: resolved