Title: widgets.php warning after upgrade
Last modified: August 19, 2016

---

# widgets.php warning after upgrade

 *  Resolved [rica125](https://wordpress.org/support/users/rica125/)
 * (@rica125)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/widgetsphp-warning-after-upgrade/)
 * I just upgraded to WP 2.5, and now I have these warnings on top of my pages.
   
   Warning: array_keys() [function.array-keys]: The first argument should be an 
   array in /home/neyofan/public_html/wp-includes/widgets.php on line 654
 * Warning: Invalid argument supplied for foreach() in /home/neyofan/public_html/
   wp-includes/widgets.php on line 654
 * Help please? Thank you. (:
 * Also, when I try to login to go to my dashboard. I just get: Warning: array_keys()[
   function.array-keys]: The first argument should be an array in /home/neyofan/
   public_html/wp-includes/widgets.php on line 654
 * Warning: Invalid argument supplied for foreach() in /home/neyofan/public_html/
   wp-includes/widgets.php on line 654
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/neyofan/public_html/wp-includes/widgets.php:654) in /home/neyofan/public_html/
   wp-includes/pluggable.php on line 689
 * Thanks. (:

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

 *  [Valentin](https://wordpress.org/support/users/vbachem/)
 * (@vbachem)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/widgetsphp-warning-after-upgrade/#post-731934)
 * Perhaps [this ](http://wordpress.org/support/topic/166090?replies=5) is also 
   a solution for your problem
 *  [bilbolodz](https://wordpress.org/support/users/bilbolodz/)
 * (@bilbolodz)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/widgetsphp-warning-after-upgrade/#post-731937)
 * Not working for my. 🙁 Any other clues?
 * Best regards
 * Piotr
 *  Thread Starter [rica125](https://wordpress.org/support/users/rica125/)
 * (@rica125)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/widgetsphp-warning-after-upgrade/#post-731958)
 * Thanks vbachem, it solved the problems. (:
 *  [xstremedesign](https://wordpress.org/support/users/xstremedesign/)
 * (@xstremedesign)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/widgetsphp-warning-after-upgrade/#post-732122)
 * My solution was very simple. for the error
    `Warning: Cannot modify header information-
   headers already sent by (output started at /home/neyofan/public_html/wp-includes/
   widgets.php:654) in /home/neyofan/public_html/wp-includes/pluggable.php on line
   689`
 * In the bottom of the file
 * wp-config.php at the bottom of the file there are two blank lines after the close
   of the php code
 * `?>` in like line 45 there are two blank lines in 46 and 47 , delete those two
   lines and the problem is solved. That is usaully the problem with the “header
   is already sent error message”
 * Hope this helps some people.
 *  [emerika](https://wordpress.org/support/users/emerika/)
 * (@emerika)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/widgetsphp-warning-after-upgrade/#post-732245)
 * I had this problem too. I fixed it by saving the design->widgets page.

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

The topic ‘widgets.php warning after upgrade’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 5 replies
 * 5 participants
 * Last reply from: [emerika](https://wordpress.org/support/users/emerika/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/widgetsphp-warning-after-upgrade/#post-732245)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
