widgets.php 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 654Warning: 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. (:
-
Perhaps this is also a solution for your problem
Not working for my. 🙁 Any other clues?
Best regards
Piotr
Thanks vbachem, it solved the problems. (:
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 689In 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.
The topic ‘widgets.php warning after upgrade’ is closed to new replies.