WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] widgets.php Problem (8 posts)

  1. notxap
    Member
    Posted 5 years ago #

    After upgrading from WP2.2.3 to 2.6.2 I get the following error at the top of the blog pages both in the site and the admin pages.

    If I replace the file widgets.php in the wp-includes directory with the older widgets.php file from my back-up of the 2.2.3 version the error disappears. Is it ok to do this or should I be using a different solution ?

    Warning: array_keys(): The first argument should be an array in /share/storage/03/no/notxap/wp-includes/widgets.php on line 686

    Warning: Invalid argument supplied for foreach() in /share/storage/03/no/notxap/wp-includes/widgets.php on line 686

  2. notxap
    Member
    Posted 5 years ago #

    If anyone can help I'd be very grateful.

    Gary

  3. notxap
    Member
    Posted 5 years ago #

    Also get this error

    Warning: Cannot modify header information - headers already sent by (output started at /share/storage/03/no/notxap/wp-includes/widgets.php:686) in /share/storage/03/no/notxap/wp-includes/pluggable.php on line 770

    When changing themes

  4. notxap
    Member
    Posted 5 years ago #

    Dashboard doesn't seem to work right either, the panels display "loading.."

  5. notxap
    Member
    Posted 5 years ago #

    Warning: array_search(): Wrong datatype for second argument in /share/storage/03/no/notxap/wp-admin/includes/widgets.php on line 85

    Obviously putting an old version of widgets.php in the wp-includes was the wrong thing to do...

  6. notxap
    Member
    Posted 5 years ago #

    When I try to activate plugins I get the following error..

    Warning: array_keys(): The first argument should be an array in /share/storage/03/no/notxap/wp-includes/widgets.php on line 686

    Warning: Invalid argument supplied for foreach() in /share/storage/03/no/notxap/wp-includes/widgets.php on line 686

    Warning: Cannot modify header information - headers already sent by (output started at /share/storage/03/no/notxap/wp-includes/widgets.php:686) in /share/storage/03/no/notxap/wp-includes/pluggable.php on line 770

    Warning: Cannot modify header information - headers already sent by (output started at /share/storage/03/no/notxap/wp-includes/widgets.php:686) in /share/storage/03/no/notxap/wp-includes/pluggable.php on line 770

    Warning: Cannot modify header information - headers already sent by (output started at /share/storage/03/no/notxap/wp-includes/widgets.php:686) in /share/storage/03/no/notxap/wp-includes/pluggable.php on line 770

  7. notxap
    Member
    Posted 5 years ago #

    Might be fixed. Seen this on another post and tried it...

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

    define('DB_CHARSET', 'utf8');

  8. gasyoun
    Member
    Posted 5 years ago #

    Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/gasyoun/public_html/wp-includes/widgets.php on line 686

    Warning: Invalid argument supplied for foreach() in /home/gasyoun/public_html/wp-includes/widgets.php on line 686

    Same error, removing define('DB_CHARSET', 'utf8'); did not helped
    No way to upgrade to 2.6.2 from 2.3 versions

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.