Title: PHP Warning: array_key_exists() expects parameter 2
Last modified: April 21, 2020

---

# PHP Warning: array_key_exists() expects parameter 2

 *  Resolved [nightowl99](https://wordpress.org/support/users/nightowl99/)
 * (@nightowl99)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-warning-array_key_exists-expects-parameter-2/)
 * Hi,
 * Our error_log gets a ton of these exact warning messages per minute:
 * PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in/
   public_html/wp-content/plugins/wp-optimize/wp-optimize.php on line 1739
 * What can I do, short of disabling the plugin, to stop these?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-warning-array_key_exists-expects-parameter-2/#post-12706348)
 * Hi there,
 * What do you have in WP-Optimize > Settings > Logging settings?
    Maybe try to 
   change the values there (add or remove some items) in order to set new values(
   The warning appears to come from the logging settings).
 * Marc.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/php-warning-array_key_exists-expects-parameter-2/#post-12706348)
 * Status: resolved