Title: PHP Warning: array_key_exists() expects parameter 2 to be array, null
Last modified: July 2, 2021

---

# PHP Warning: array_key_exists() expects parameter 2 to be array, null

 *  Resolved [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/php-warning-array_key_exists-expects-parameter-2-to-be-array-null/)
 * I got these errors in the log:
 *     ```
       02-Jul-2021 09:28:10 UTC] PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /public_html/wp-content/plugins/facebook-for-woocommerce/includes/Feed/FeedConfigurationDetection.php on line 110
       [02-Jul-2021 09:28:10 UTC] PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /public_html/wp-content/plugins/facebook-for-woocommerce/includes/Feed/FeedConfigurationDetection.php on line 114
       [02-Jul-2021 09:28:10 UTC] PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /public_html/wp-content/plugins/facebook-for-woocommerce/includes/Feed/FeedConfigurationDetection.php on line 122
       ```
   

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

 *  [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * (@fernashes)
 * Automattic Happiness Engineer
 * [4 years, 11 months ago](https://wordpress.org/support/topic/php-warning-array_key_exists-expects-parameter-2-to-be-array-null/#post-14621972)
 * Hey there,
 * Thanks for letting us know!
 * I did some searching and there haven’t been many other reports of this issue –
   to help you out more, I’d like some more information.
 * When you say “in the log”, which log do you mean?
 * Could you please share a copy of your site’s System Status? You can find it via
   WooCommerce > Status. Select “Get system report” and then “Copy for support”.
   Once you’ve done that, paste it here in your response. Feel free to remove identifying
   info such as the site’s URL.
 *  Thread Starter [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-warning-array_key_exists-expects-parameter-2-to-be-array-null/#post-14626568)
 * I got that in the PHP error log.
    I get that everyday so I think that is something
   around the cron.
 * I checked the code and opened an issue on github as it is clearly a bug in the
   code that doesn’t expects exceptions: [https://github.com/woocommerce/facebook-for-woocommerce/issues/2045](https://github.com/woocommerce/facebook-for-woocommerce/issues/2045)
 *  [slash1andy](https://wordpress.org/support/users/slash1andy/)
 * (@slash1andy)
 * Automattic Happiness Engineer
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-warning-array_key_exists-expects-parameter-2-to-be-array-null/#post-14628852)
 * Great to see that you’ve reported it. That will be where the devs will followup
   with regards to this with you.
 * I’m going to mark this thread resolved on our end, as they are now tracking it
   in GH.
 * Thanks!

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

The topic ‘PHP Warning: array_key_exists() expects parameter 2 to be array, null’
is closed to new replies.

 * ![](https://ps.w.org/facebook-for-woocommerce/assets/icon.svg?rev=3469606)
 * [Meta for WooCommerce](https://wordpress.org/plugins/facebook-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-for-woocommerce/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [slash1andy](https://wordpress.org/support/users/slash1andy/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/php-warning-array_key_exists-expects-parameter-2-to-be-array-null/#post-14628852)
 * Status: resolved