Title: Sidebar error message Warning: array_key_exists() [function.array-key-exists]
Last modified: August 20, 2016

---

# Sidebar error message Warning: array_key_exists() [function.array-key-exists]

 *  [dallasm](https://wordpress.org/support/users/dallasm/)
 * (@dallasm)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/sidebar-error-message-warning-array_key_exists-functionarray-key-exists/)
 * I get this error on my sidebars until I add a widget, even off different theme
   or mapped to different subdomains, adding a widget makes it disapper
 * Warning: array_key_exists() [function.array-key-exists]: The second argument 
   should be either an array or an object in /home/user/public_html/wp-includes/
   widgets.php on line 858
 * It didn’t always do this.
    Any ideas?

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

 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/sidebar-error-message-warning-array_key_exists-functionarray-key-exists/#post-2114997)
 * A plugin conflict maybe?
 *  Thread Starter [dallasm](https://wordpress.org/support/users/dallasm/)
 * (@dallasm)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/sidebar-error-message-warning-array_key_exists-functionarray-key-exists/#post-2115097)
 * Thanks Andrea
    Tried removing all plugins but no luck. Changing the themes on
   the blogs displaying the errors (any without a sidebar widget) didn’t help. Changing
   the main theme to default (actually I used P2 instead) and back again fixed the
   problem…. at least temporarily. I suspect I’ve put some dodgy code in my theme
   but not sure why it goes away with a theme change….. we’ll see how long it lasts.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 11 months ago](https://wordpress.org/support/topic/sidebar-error-message-warning-array_key_exists-functionarray-key-exists/#post-2115102)
 * It goes away because you have a theme that didn’t correctly check for the existence
   of a widget and error out gracefully. That’s all

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

The topic ‘Sidebar error message Warning: array_key_exists() [function.array-key-
exists]’ is closed to new replies.

## Tags

 * [array_key_exists](https://wordpress.org/support/topic-tag/array_key_exists/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 3 replies
 * 3 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/sidebar-error-message-warning-array_key_exists-functionarray-key-exists/#post-2115102)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
