WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Upgraded to 2.6 > error in widgets.php on line 686

[Resolved] Upgraded to 2.6 > error in widgets.php on line 686

  • So I upgraded to version 2.6 and having caught the secret key thingy, I am now faced with the errors:

    Warning: array_keys() [function.array-keys]: The first argument should be an array in D:\hosting\member\blogkenneth\site1\wp-includes\widgets.php on line 686

    Warning: Invalid argument supplied for foreach() in D:\hosting\member\blogkenneth\site1\wp-includes\widgets.php on line 686

    I have no idea what this means, but it has completely broken my website as can be seen here – and ive tried reuploading the file to no avail.

Viewing 15 replies - 1 through 15 (of 25 total)
  • rolling back to 2.5.1 – this isnt working at all – don’t know what you did for 2.6 but it has completely exploded my website and even with all the files uploaded, I can’t get it to work.

    You have some kind of broken text widget settings. This is a common problem, but not particular to 2.6.

    1. Reupload 2.6 correctly.
    2. Add this to your theme’s functions.php file:
    delete_option('widget_text');
    3. Load your webpage a couple of times.
    4. Remove that line from the functions.php file again. You don’t want to leave it there.
    5. Go fix up your text widgets, as they’ll be deleted by this process.

    Yeah I now have a whole new set of problems since rolling back to 2.5 have left me unable to get into the wp-admin area *sigh* why is it that things can just never be bloody simple? :/

    Ill try that widget delete idea if i get in touch with my installation again.

    any particular place I should insert this? I know zip about php and just plopping it in doesnt seem to do anything.
    Im using the Mandigo theme if that’s any help

    You can insert it right after the initial <?php line.

    Ok – the sad part about this is, that the upgrade to 2.6 just cost me the better part of the extra functionality on my website as I had no idea I needed to take backup of the widgets – and they are just gone now it seems 🙁

    In addition, it seems that WP 2.6 has broken the Mandigo theme somehow.

    But thanks for the assistance – at least the website is back up.

    I had no idea I needed to take backup of the widgets

    You didn’t, really. However, several people had this same problem with the 2.5 upgrade.

    Apparently, some extremely unusual cases could hork up the text widgets during the upgrade. It works fine for most people, most of the time.

    Well im one of those cases and I can now spend hours trying to restore it all, on top of my website now looking like crap.

    Probably not your fault, this has just not been a good upgrade experience.

    Hi, I got the same problem. And cant get access to my admin space…
    I get

    Warning: array_keys(): The first argument should be an array in /usr/home/tristanmf/public_html/wp-includes/widgets.php on line 1352
    
    Warning: Invalid argument supplied for foreach() in /usr/home/tristanmf/public_html/wp-includes/widgets.php on line 1352
    
    Warning: Cannot modify header information - headers already sent by (output started at /usr/home/tristanmf/public_html/wp-includes/widgets.php:1352) in /usr/home/tristanmf/public_html/wp-includes/pluggable.php on line 770

    I get the widgets.php problem on my blog to : http://blog.mendes-france.com/

    Anything suggestions ?
    [i’m french sorry for my english]

    Tristao: You seem to have some sort of problem with the RSS widgets. Never seen that one, but same basic fix idea will work.

    -Add this to your theme’s functions.php file:
    delete_option('widget_rss');
    -Load your main webpage a couple of times.
    -Remove that line from the functions.php file again. You don’t want to leave it there.
    -Go fix up your RSS widgets, as they’ll be deleted by this process.

    Otto> Thanx so much ! It worked, I gained access to my admin and my blog is back. Just a little problem : it changed my character set (“é” become “é”, etc.).
    Would anybody know how to put it back to normal ?

    Look at your wp-config.php file. If you see this line, remove it:

    define('DB_CHARSET', 'utf8');

    Otto> Once again thank you very much for your answers. You have solved all my problems.
    Cheers from Paris.

    Hi!
    i’ve a problem with the new 2.6. I can’t edit the widgets on the right sidebar. It’s seems the doesn’t exist. Some plugint problem?

    Thanks

    Otto42, you rock!
    Been working on this for ages, but I got the blog running thanks to this thread.
    And I can get into the admin and all.
    Great.
    The only thing is that I lost ALL my Categories.
    Any idea why?

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘[Resolved] Upgraded to 2.6 > error in widgets.php on line 686’ is closed to new replies.
Skip to toolbar