WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] widgets.php warning after upgrade (6 posts)

  1. rica125
    Member
    Posted 6 years ago #

    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. (:

  2. vbachem
    Member
    Posted 6 years ago #

    Perhaps this is also a solution for your problem

  3. bilbolodz
    Member
    Posted 6 years ago #

    Not working for my. :-( Any other clues?

    Best regards

    Piotr

  4. rica125
    Member
    Posted 6 years ago #

    Thanks vbachem, it solved the problems. (:

  5. xstremedesign
    Member
    Posted 6 years ago #

    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.

  6. emerika
    Member
    Posted 5 years ago #

    I had this problem too. I fixed it by saving the design->widgets page.

Topic Closed

This topic has been closed to new replies.

About this Topic