WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] My WordPress upgrade is corrupted! How do I recover? (4 posts)

  1. micasuh
    Member
    Posted 8 years ago #

    I just upgraded from 2.0.2 to 2.0.4. Once I logged into the admin panel, There are a few errors at the top of the panel! They are the following:

    Warning: First argument to array_keys() should be an array in /home/virtual/site70/fst/var/www/html/wp/wp-admin/admin-functions.php on line 1322

    Warning: Invalid argument supplied for foreach() in /home/virtual/site70/fst/var/www/html/wp/wp-admin/admin-functions.php on line 1322

    Warning: Invalid argument supplied for foreach() in /home/virtual/site70/fst/var/www/html/wp/wp-admin/menu.php on line 8

    I deactivated all my plugins, followed the instructions to a tee.

    Someone, please help me!! My page isn't looking right!

  2. micasuh
    Member
    Posted 8 years ago #

    Ah, I found my answer with a little searching! All I did was reupload the admin folder. I guess some files, upon upload, were corrupted. So, here's the solution for anyone's future reference!

  3. whooami
    Member
    Posted 8 years ago #

    yes, its covered several times already, amazing how helpful that search can be :)

    http://wordpress.org/support/topic/81539?replies=6

  4. Tfleming
    Member
    Posted 7 years ago #

    I'm having the same "Invalid argument supplied for foreach()" error pop up, but only when I use my Travelogue theme. It's not there when I use the default or classic themes.

    My specific error is this:

    Warning: Invalid argument supplied for foreach() in /home2/tfleming/tonyfleming-www/wordpress/wp-admin/upgrade-functions.php on line 879

    879 foreach($indices as $index) {
    880 // Push a query line into $cqueries that adds the index to that table
    881 $cqueries[] = "ALTER TABLE {$table} ADD $index";
    882 $for_update[$table.'.'.$fieldname] = 'Added index '.$table.' '.$index;
    883 }

Topic Closed

This topic has been closed to new replies.

About this Topic