Title: array_key_exists()
Last modified: November 30, 2017

---

# array_key_exists()

 *  Resolved [WebDeb](https://wordpress.org/support/users/sillymoney/)
 * (@sillymoney)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/array_key_exists-3/)
 * First started 15-Oct-2017 the error log has a persistent error up to today.
 * [29-Nov-2017 15:07:58 UTC] PHP Warning: array_key_exists(): The first argument
   should be either a string or an integer in …/public_html/wp-content/plugins/widget-
   options/includes/widgets/display.php on line 157
 * Please advise.
 * Thank you
    Site is now on 4.9.1
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Farray_key_exists-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Jeffrey Carandang](https://wordpress.org/support/users/phpbits/)
 * (@phpbits)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/array_key_exists-3/#post-9787813)
 * Hi [@sillymoney](https://wordpress.org/support/users/sillymoney/),
 * Thank you very much for reporting this issue and my apology for late response.
   Would you mind replacing that file with this one : [https://github.com/phpbits/widget-options/blob/develop/includes/widgets/display.php](https://github.com/phpbits/widget-options/blob/develop/includes/widgets/display.php)
   and let me know how it goes. Thanks!
 *  Thread Starter [WebDeb](https://wordpress.org/support/users/sillymoney/)
 * (@sillymoney)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/array_key_exists-3/#post-9797080)
 * Was this change included in version 3.6? I updated it early today … no errors
   so far!
 *  [Jeffrey Carandang](https://wordpress.org/support/users/phpbits/)
 * (@phpbits)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/array_key_exists-3/#post-9798145)
 * [@sillymoney](https://wordpress.org/support/users/sillymoney/) Yes it’s included
   on the latest update 🙂 Thank you very much for reporting it and let me know 
   if in any case you encounter any other issues. Thanks!

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

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

 * ![](https://ps.w.org/widget-options/assets/icon-256x256.gif?rev=2513739)
 * [Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets](https://wordpress.org/plugins/widget-options/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-options/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-options/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-options/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-options/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-options/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jeffrey Carandang](https://wordpress.org/support/users/phpbits/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/array_key_exists-3/#post-9798145)
 * Status: resolved