• Resolved rica125

    (@rica125)


    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

    (@vbachem)

    Perhaps this is also a solution for your problem

    bilbolodz

    (@bilbolodz)

    Not working for my. 🙁 Any other clues?

    Best regards

    Piotr

    Thread Starter rica125

    (@rica125)

    Thanks vbachem, it solved the problems. (:

    xstremedesign

    (@xstremedesign)

    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.

    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.