Title: PHP Warning: array_key_exists()
Last modified: November 27, 2020

---

# PHP Warning: array_key_exists()

 *  Resolved [hannibal88](https://wordpress.org/support/users/hannibal88/)
 * (@hannibal88)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/php-warning-array_key_exists-3/)
 * Hi there,
 * I recieve the following error message in my logfile:
 * AH01071: Got error ‘PHP message: PHP Warning: array_key_exists() expects parameter
   2 to be array, string given in XXX/wp-content/plugins/hide-shipping-method-for-
   woocommerce/public/class-woo-hide-shipping-methods-public.php on line 260’
 * Any idea how to fix this?

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

 *  Plugin Support [Hitendra Chopda](https://wordpress.org/support/users/hitendra-chopda/)
 * (@hitendra-chopda)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/php-warning-array_key_exists-3/#post-13735002)
 * Hello hannibal88,
 * Thanks for reaching out to us.
 * This type of issue might be come if you are using the “Conditional Hide shipping
   method Rules” section and haven’t save the rules properly.
 * Can you please save All or Any Once rules and check if it will works.
 * [Click here](https://pasteboard.co/JD3Cs8q.png) to review the screen shot for
   the settings.
 * Hope this helps.
 * Best Regards,
    Hitendra & Dotstore team
 *  Plugin Support [Hitendra Chopda](https://wordpress.org/support/users/hitendra-chopda/)
 * (@hitendra-chopda)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/php-warning-array_key_exists-3/#post-13797215)
 * Hello there,
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved.
 * If you have any further questions, you can start a new thread.
 * Best Regards,
    Hitendra & Dotstore team

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

The topic ‘PHP Warning: array_key_exists()’ is closed to new replies.

 * ![](https://ps.w.org/hide-shipping-method-for-woocommerce/assets/icon-256x256.
   png?rev=3011292)
 * [Hide Shipping Method For WooCommerce](https://wordpress.org/plugins/hide-shipping-method-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hide-shipping-method-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hide-shipping-method-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/hide-shipping-method-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hide-shipping-method-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hide-shipping-method-for-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Hitendra Chopda](https://wordpress.org/support/users/hitendra-chopda/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/php-warning-array_key_exists-3/#post-13797215)
 * Status: resolved