Title: error_log array_key_exists warnings
Last modified: July 5, 2018

---

# error_log array_key_exists warnings

 *  Resolved [bh007](https://wordpress.org/support/users/bh007/)
 * (@bh007)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/error_log-array_key_exists-warnings/)
 * Hi
    The error log has been constantly growing with these entries:
 * PHP Warning: array_key_exists() expects parameter 2 to be array, boolean given
   in /home/xxxxxx/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-
   waf/src/lib/storage/file.php on line 478
 * and
 * PHP Warning: Cannot use a scalar value as an array in /home/xxxxxx/public_html/
   wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php
   on line 499
 * Current PHP version is 5.6.
 * Any help would be appreciated.
    Thanks

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

 *  [wfchar](https://wordpress.org/support/users/wfchar/)
 * (@wfchar)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/error_log-array_key_exists-warnings/#post-10466575)
 * Hi [@bh007](https://wordpress.org/support/users/bh007/),
 * Could you please create a backup archive of the entire `wp-content/wflogs` folder
   and email it to [char@wordfence.com](https://wordpress.org/support/topic/error_log-array_key_exists-warnings/char@wordfence.com?output_format=md)?
   Once that’s done:
    - Delete the `wflogs` folder from the server
    - Refresh any of the Wordfence plugin’s options pages — this regenerates the`
      wflogs` folder
    - Switch the firewall to “Enabled and Protecting”
 * Once you’ve completed these steps, please let me know if you’re continuing to
   see the errors!
 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/error_log-array_key_exists-warnings/#post-10657474)
 * Hi [@bh007](https://wordpress.org/support/users/bh007/)
 * Since we haven’t heard from you for a while I’m going to go ahead and resolve
   this thread. If you have any other questions or concerns, don’t hesitate to open
   a new one.
 * Thanks.

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

The topic ‘error_log array_key_exists warnings’ 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/)

## Tags

 * [error_log](https://wordpress.org/support/topic-tag/error_log/)

 * 2 replies
 * 3 participants
 * Last reply from: [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/error_log-array_key_exists-warnings/#post-10657474)
 * Status: resolved