Title: PHP Warning
Last modified: December 6, 2022

---

# PHP Warning

 *  Resolved [CamZL1](https://wordpress.org/support/users/danishhaidri/)
 * (@danishhaidri)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-warning-389/)
 * Hi,
    Can you please explain why we are getting this error?
 * `2022/12/06 03:26:36 [error] 133453#133453: *195405 FastCGI sent in stderr: "
   PHP message: PHP Warning: array_key_exists() expects parameter 2 to be array,
   bool given in /home/abc/webapps/---/wp-content/plugins/woocommerce/includes/admin/
   helper/class-wc-helper-options.php on line 54PHP message: PHP Warning: array_key_exists()
   expects parameter 2 to be array, bool given in /home/abc/webapps/---/wp-content/
   plugins/woocommerce/includes/admin/helper/class-wc-helper-options.php on line
   54" while reading response header from upstream, client: 103.181.41.223, server:---.
   com, request: "POST /wp-admin/admin-ajax.php HTTP/2.0", upstream: "fastcgi://
   unix:/var/run/---.sock:", host: "---.com", referrer: "https://---/"`

Viewing 1 replies (of 1 total)

 *  [Amir A. (woo-hc)](https://wordpress.org/support/users/amiralifarooq/)
 * (@amiralifarooq)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-warning-389/#post-16268760)
 * Hi [@danishhaidri](https://wordpress.org/support/users/danishhaidri/)
 * It looks like the code it is trying to retrieve an option from the wp_options
   table, bit it’s being passed as boolean instead of an array.
 * You can try running the code from the reply: [https://wordpress.org/support/topic/class-wc-helper-options-php/#post-13253688](https://wordpress.org/support/topic/class-wc-helper-options-php/#post-13253688)
 * Make sure to have a backup before running any code!
 * I have also found another [thread ](https://wordpress.org/support/topic/warning-array_key_exists-expects-parameter-2-to-be-array-boolean-given-in-3/)
   that might be helpful for you.
 * If the above solution doesn’t work, 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.
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 1 reply
 * 2 participants
 * Last reply from: [Amir A. (woo-hc)](https://wordpress.org/support/users/amiralifarooq/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/php-warning-389/#post-16268760)
 * Status: resolved