Title: wfCrawl.php PHP Warning: array_key_exists(): The first argument should be eithe
Last modified: April 18, 2019

---

# wfCrawl.php PHP Warning: array_key_exists(): The first argument should be eithe

 *  [maxgx](https://wordpress.org/support/users/maxgx/)
 * (@maxgx)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/wfcrawl-php-php-warning-array_key_exists-the-first-argument-should-be-eithe/)
 * checking the error_log, it’s full of these warnings:
 * [18-Apr-2019 11:27:28 UTC] PHP Warning: array_key_exists(): The first argument
   should be either a string or an integer in /**path**/wp-content/plugins/wordfence/
   lib/wfCrawl.php on line 118
 * i read [@wfasa](https://wordpress.org/support/users/wfasa/) reply was:
    “This
   means Wordfence was trying to process a visit to your site but for some reason
   it was not able to read the IP address”
 * but i can see Wordfence reading up the site’s IP just fine in Diagnostic.
 * what can i try?

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

 *  [wfdave](https://wordpress.org/support/users/wfdave/)
 * (@wfdave)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/wfcrawl-php-php-warning-array_key_exists-the-first-argument-should-be-eithe/#post-11443879)
 * Hi [@maxgx](https://wordpress.org/support/users/maxgx/),
 * Could you send over your site’s diagnostics?
 * You can do this by going to Wordfence -> Tools -> Diagnostics -> Send Report 
   by Email.
    Put `wftest@wordfence.com` for the email, and `maxgx` for the Ticket
   Number/Forum Username.
 * Dave
 *  Thread Starter [maxgx](https://wordpress.org/support/users/maxgx/)
 * (@maxgx)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/wfcrawl-php-php-warning-array_key_exists-the-first-argument-should-be-eithe/#post-11444446)
 * thanks [@wfdave](https://wordpress.org/support/users/wfdave/), report should 
   be on its way to you
 *  Thread Starter [maxgx](https://wordpress.org/support/users/maxgx/)
 * (@maxgx)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/wfcrawl-php-php-warning-array_key_exists-the-first-argument-should-be-eithe/#post-11478148)
 * hi [@wfdave](https://wordpress.org/support/users/wfdave/) did you receive the
   report? any news on the issue?
 *  [jmginer](https://wordpress.org/support/users/jmginer/)
 * (@jmginer)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/wfcrawl-php-php-warning-array_key_exists-the-first-argument-should-be-eithe/#post-11827088)
 * We have a client that gets this error when the origin of the connection is IPv6.
   With IPv4 it works well.
 *  [bernardcana](https://wordpress.org/support/users/bernardcana/)
 * (@bernardcana)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/wfcrawl-php-php-warning-array_key_exists-the-first-argument-should-be-eithe/#post-11843121)
 * Has there been any update on this? I’m seeing the same issue on my site.
 *  [krismessi](https://wordpress.org/support/users/krismessi/)
 * (@krismessi)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/wfcrawl-php-php-warning-array_key_exists-the-first-argument-should-be-eithe/#post-12314213)
 * hey! i need help i’m having a similar error but not with wordfence WPForms. I’m
   at a complete loss — everything was fine this afternoon — when i went back into
   the site i have this error and i can’t update any pages/ I know it’s WPForms 
   because when i deactivate it the error is resolved. But i have no idea how to
   fix whatever is going on in the functions.php
 *  [krismessi](https://wordpress.org/support/users/krismessi/)
 * (@krismessi)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/wfcrawl-php-php-warning-array_key_exists-the-first-argument-should-be-eithe/#post-12314217)
 * This is the full error message
 * Warning: array_key_exists(): The first argument should be either a string or 
   an integer in /home/customer/www/website.ca/public_html.wp/wp-content/plugins/
   wpforms/src/Pro/Access/Capabilities.php on line 145
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/customer/www/website.ca/public_html/wp-content/plugins/wpforms/src/Pro/
   Access/Capabilities.php:145) in /home/customer/www/website.ca/public_html/wp-
   includes/functions.php on line 6029

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

The topic ‘wfCrawl.php PHP Warning: array_key_exists(): The first argument should
be eithe’ 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/)

 * 7 replies
 * 1 participant
 * Last reply from: [krismessi](https://wordpress.org/support/users/krismessi/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/wfcrawl-php-php-warning-array_key_exists-the-first-argument-should-be-eithe/#post-12314217)
 * Status: not resolved