Title: Warning array key exists()  error.
Last modified: August 19, 2016

---

# Warning array key exists() error.

 *  [dallasm](https://wordpress.org/support/users/dallasm/)
 * (@dallasm)
 * [15 years ago](https://wordpress.org/support/topic/warning-array-key-exists-error/)
 * Hi I’m getting this error in all my sidebars, sometimes it goes away if I put
   widgets in or change them, but can’t consistently remove them
    They first appeared
   when I changed my sidebar.php template files including some of the “if sidebar
   exists” type stuff, but not immediately, so I’m not sure this is responsible.
   They are appearing in unrelated themes and also when I reinstall the theme from
   scratch. Running multisite and I wonder if it might be due to the large number
   of sites, but not sure.
 * Warning: array_key_exists() [function.array-key-exists]: The second argument 
   should be either an array or an object in /home/myname/public_html/wp-includes/
   widgets.php on line 858

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years ago](https://wordpress.org/support/topic/warning-array-key-exists-error/#post-1991460)
 * Have you tried:
 * – deactivating **all** plugins to see if this resolves the problem. If this works,
   re-activate the plugins one by one until you find the problematic plugin(s).
 * – switching to the Twenty Ten theme to rule out any theme-specific problems.
 * – [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause
   problems.

Viewing 1 replies (of 1 total)

The topic ‘Warning array key exists() error.’ is closed to new replies.

## Tags

 * [array key](https://wordpress.org/support/topic-tag/array-key/)
 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)
 * [template](https://wordpress.org/support/topic-tag/template/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/warning-array-key-exists-error/#post-1991460)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
