wp error after changing hosting ..

Discussion in 'PHP' started by SonnyCooL, Nov 30, 2008.

  1. #1
    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
     
    SonnyCooL, Nov 30, 2008 IP
  2. juust

    juust Peon

    Messages:
    214
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    juust, Nov 30, 2008 IP
  3. SonnyCooL

    SonnyCooL Peon

    Messages:
    1,170
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    try clear the cache and cookie, it still no luck ...
    anyone else ??
     
    SonnyCooL, Nov 30, 2008 IP
  4. misbah

    misbah Active Member

    Messages:
    265
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    68
    #4
    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
     
    misbah, Nov 30, 2008 IP
  5. SonnyCooL

    SonnyCooL Peon

    Messages:
    1,170
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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
     
    SonnyCooL, Dec 1, 2008 IP
  6. misbah

    misbah Active Member

    Messages:
    265
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    68
    #6
    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...
     
    misbah, Dec 1, 2008 IP
    SonnyCooL likes this.
  7. SonnyCooL

    SonnyCooL Peon

    Messages:
    1,170
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #7
    thanks it does solve some where ... rep added ...
     
    SonnyCooL, Dec 1, 2008 IP