I just change my hosting provider and the error code keep on coming till i can't login to my WP admin .... Please help .... this is the site i having problem : simplez.aka.my the error code i received in the front page : Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sonnykoo/public_html/simplez/wp-includes/widgets.php on line 686 Warning: Invalid argument supplied for foreach() in /home/sonnykoo/public_html/simplez/wp-includes/widgets.php on line 686 login page error : Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sonnykoo/public_html/simplez/wp-includes/widgets.php on line 686 Warning: Invalid argument supplied for foreach() in /home/sonnykoo/public_html/simplez/wp-includes/widgets.php on line 686 Warning: Cannot modify header information - headers already sent by (output started at /home/sonnykoo/public_html/simplez/wp-includes/widgets.php:686) in /home/sonnykoo/public_html/simplez/wp-login.php on line 267 Warning: Cannot modify header information - headers already sent by (output started at /home/sonnykoo/public_html/simplez/wp-includes/widgets.php:686) in /home/sonnykoo/public_html/simplez/wp-login.php on line 279 after i fill in the login but i can't get in to the dash board with below error : Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sonnykoo/public_html/simplez/wp-includes/widgets.php on line 686 Warning: Invalid argument supplied for foreach() in /home/sonnykoo/public_html/simplez/wp-includes/widgets.php on line 686 Warning: Cannot modify header information - headers already sent by (output started at /home/sonnykoo/public_html/simplez/wp-includes/widgets.php:686) in /home/sonnykoo/public_html/simplez/wp-login.php on line 267 Warning: Cannot modify header information - headers already sent by (output started at /home/sonnykoo/public_html/simplez/wp-includes/widgets.php:686) in /home/sonnykoo/public_html/simplez/wp-login.php on line 279 Warning: Cannot modify header information - headers already sent by (output started at /home/sonnykoo/public_html/simplez/wp-includes/widgets.php:686) in /home/sonnykoo/public_html/simplez/wp-includes/pluggable.php on line 595 Warning: Cannot modify header information - headers already sent by (output started at /home/sonnykoo/public_html/simplez/wp-includes/widgets.php:686) in /home/sonnykoo/public_html/simplez/wp-includes/pluggable.php on line 596 Warning: Cannot modify header information - headers already sent by (output started at /home/sonnykoo/public_html/simplez/wp-includes/widgets.php:686) in /home/sonnykoo/public_html/simplez/wp-includes/pluggable.php on line 597 Warning: Cannot modify header information - headers already sent by (output started at /home/sonnykoo/public_html/simplez/wp-includes/widgets.php:686) in /home/sonnykoo/public_html/simplez/wp-includes/pluggable.php on line 770 any one can help me to solve this ? or guide me to some where ? thanks
maybe this one http://wordpress.org/support/topic/136259?replies=15 or cleaning the cache (in case you copied the lot, usually cached stuff holds references to your old install)
before move your script... deactivate all plugin. and remove all widget... after that you can activate your plugin and add your widget... and I think the problem is your script... especially wp-includes/widgets.php line 686
thanks .... but currently i can't login to dashboard so no chances for me to disable it ..... and also try delete all the plugin thru ftp but problem still occur, so any way for me to login the admin panel again ??? thanks
try this - open wp-includes/widgets.php - go to line 686 and cut out this part (only temporarily, make sure you can put it back later!) --- foreach ( array_keys($options) as $o ) { // Old widgets can have null values for some reason if ( !isset($options[$o]['title']) || !isset($options[$o]['text']) ) continue; $id = "text-$o"; // Never never never translate an id wp_register_sidebar_widget($id, $name, 'wp_widget_text', $widget_ops, array( 'number' => $o )); wp_register_widget_control($id, $name, 'wp_widget_text_control', $control_ops, array( 'number' => $o )); } --- or you can PM me if you got something wrong...