WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. dallasm
    Member
    Posted 3 years ago #

    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?

  2. A plugin conflict maybe?

  3. dallasm
    Member
    Posted 3 years ago #

    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.

  4. 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

Topic Closed

This topic has been closed to new replies.

About this Topic