Title: widget.php problems
Last modified: August 19, 2016

---

# widget.php problems

 *  [xxkakuraxx](https://wordpress.org/support/users/xxkakuraxx/)
 * (@xxkakuraxx)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/widgetphp-problems/)
 * Warning: array_keys() [function.array-keys]: The first argument should be an 
   array in /home/kayloo/public_html/wp-includes/widgets.php on line 654
 * Warning: Invalid argument supplied for foreach() in /home/kayloo/public_html/
   wp-includes/widgets.php on line 654
 * This is appearing on every single page of my blog. I’ve tried looking at the 
   php file, and everything. I even deleted WordPress,re-installed, and added the
   backup and the messages are still there.
 * Please someone help me because I have come to an dead in to what to do.

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

 *  [TrishaM](https://wordpress.org/support/users/trisham/)
 * (@trisham)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/widgetphp-problems/#post-740553)
 * Are you using any Widgets?
 * This code is used when registering widgets for use in your sidebar……
 *  Thread Starter [xxkakuraxx](https://wordpress.org/support/users/xxkakuraxx/)
 * (@xxkakuraxx)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/widgetphp-problems/#post-740557)
 * Yea… well I was using widgets, but now I’m not due to the reinstall, but before
   all that I couldn’t see the widgets on the sidebar in wp-admin…
 *  [TrishaM](https://wordpress.org/support/users/trisham/)
 * (@trisham)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/widgetphp-problems/#post-740563)
 * Just for giggles check under Design >Widgets and on the right side see if there
   are any listed under Current Widgets…… If you don’t have any it will say “you
   are using 0 widgets in the sidebar”……If you have more than one sidebar there 
   is a dropdown for each sidebar……
 * It sounds like a conflict with an older widget and the new 2.5’s way of handling
   widgets….
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [18 years, 2 months ago](https://wordpress.org/support/topic/widgetphp-problems/#post-740567)
 * Stick this in your theme’s functions.php file:
    `delete_option('widget_text');`
 * Then load the page. This will kill the option for any text widgets you may have
   had in the sidebar, but it will fix the error. After you can see the blog and
   login again, remove the above line, you won’t be able to fix the widgets until
   you do.
 * Apparently there’s some kind of incompatibility between the old text widget data
   and the new text widget data, but for some reason it doesn’t happen to everybody.
 *  Thread Starter [xxkakuraxx](https://wordpress.org/support/users/xxkakuraxx/)
 * (@xxkakuraxx)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/widgetphp-problems/#post-740571)
 * Ah man Otto your a savior. Thanks, you really helped out. Works fine now.
 *  [thiagol](https://wordpress.org/support/users/thiagol/)
 * (@thiagol)
 * [18 years ago](https://wordpress.org/support/topic/widgetphp-problems/#post-740940)
 * Hey guys, I had the same problem but when trying to change the wp_ prefix… I 
   removed all the widgets and the warning desappeared but now all my comments and
   a lot of things are midle-cutted O.o
 * [http://up.onhost.com.br/](http://up.onhost.com.br/)
 * U guys can see there, the comments and the blog title… =/
 * How can I fix it?
 * **FIXED! THANKS ANYWAYS**
 *  [ryureid](https://wordpress.org/support/users/ryureid/)
 * (@ryureid)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/widgetphp-problems/#post-740962)
 * Otto, you rock. You’re mad wisdom solved our problem as well. We tried over a
   dozen “fixes” people suggested. Now after 24 hours of frustration we are back
   up. Thanks.
 *  [gljackson](https://wordpress.org/support/users/gljackson/)
 * (@gljackson)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/widgetphp-problems/#post-740987)
 * Otto, I’m hoping you can help me with a related issue. I’ve looked all over this
   forum and haven’t found a fix that works. I’ve got two blogs that are almost 
   identical except the first one’s sidebar has slipped to the bottom.
    [http://insuranceblogtoday.org/](http://insuranceblogtoday.org/)
   [http://theinsuranceblog.org/](http://theinsuranceblog.org/) same settings, mostly
   same sidebar content, but the posts are different, of course. And to make things
   worse, on the problem blog, it says I have 0 widgets in the sidebar frustrating
   my attempts to try deleting the offending widgets.

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

The topic ‘widget.php problems’ is closed to new replies.

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [errors](https://wordpress.org/support/topic-tag/errors/)
 * [warnings](https://wordpress.org/support/topic-tag/warnings/)
 * [widgets.php](https://wordpress.org/support/topic-tag/widgets-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 6 participants
 * Last reply from: [gljackson](https://wordpress.org/support/users/gljackson/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/widgetphp-problems/#post-740987)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
