Title: Warning: array_key_exists() expects parameter 2
Last modified: August 21, 2016

---

# Warning: array_key_exists() expects parameter 2

 *  Resolved [sharkbaits](https://wordpress.org/support/users/sharkbaits/)
 * (@sharkbaits)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/warning-array_key_exists-expects-parameter-2/)
 * Error:
    Warning: array_key_exists() expects parameter 2 to be array, boolean 
   given in wp-content/plugins/wp-postviews/wp-postviews.php on line 134
 * [http://wordpress.org/plugins/wp-postviews/](http://wordpress.org/plugins/wp-postviews/)

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

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/warning-array_key_exists-expects-parameter-2/#post-4146068)
 * Looks like there is a problem when activating the plugin. Deactivate and activate
   again.
 *  Thread Starter [sharkbaits](https://wordpress.org/support/users/sharkbaits/)
 * (@sharkbaits)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/warning-array_key_exists-expects-parameter-2/#post-4146148)
 * Resolved:
    Just needed to reset the defaults in the plugin settings. Thanks for
   a quick reply, Al

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

The topic ‘Warning: array_key_exists() expects parameter 2’ is closed to new replies.

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

 * 2 replies
 * 2 participants
 * Last reply from: [sharkbaits](https://wordpress.org/support/users/sharkbaits/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/warning-array_key_exists-expects-parameter-2/#post-4146148)
 * Status: resolved