WordPress.org

Ready to get started?Download WordPress

Forums

Upgrade to 2.5.1 - get error messages (16 posts)

  1. lpantos
    Member
    Posted 6 years ago #

    Please help. I upgraded today from 2.3 to 2.5.1 and now I get these message when I try to go to my blog

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

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

    Warning: Cannot modify header information - headers already sent by (output started at /home/guhhfbqk/public_html/wp-includes/widgets.php:676) in /home/guhhfbqk/public_html/wp-includes/pluggable.php on line 694

  2. MichaelH
    Member
    Posted 6 years ago #

  3. lpantos
    Member
    Posted 6 years ago #

    yes, that answered it. I just needed to basically open the widgets.php and click on save changes and it works.

    Edited - it did not work. It allows me to see my blog and the errors are above the header -but I can't get into the admin section.

  4. MichaelH
    Member
    Posted 6 years ago #

    Link to see the error, please.

  5. lpantos
    Member
    Posted 6 years ago #

  6. MichaelH
    Member
    Posted 6 years ago #

    What about 'removing' the Widgets, especially the Text widgets. Saving the changes, then viewing your site.

    Then recreate the Text Widgets.

    If that doesn't fix did you try Otto's suggestion?

    Worst case, manually edit your database, find the widget_text row in wp_options, and remove it.

  7. lpantos
    Member
    Posted 6 years ago #

    how do I remove the widgets - ?
    Thanks.

  8. MichaelH
    Member
    Posted 6 years ago #

    Oh, and I guess there's the possibility you didn't get a completely intact set of 2.5.1 files uploaded--in that case, review Steps 7 and 8 in Upgrading_WordPress_Extended.

  9. MichaelH
    Member
    Posted 6 years ago #

    To remove widget, click on Edit, then the Remove button will be revealed.

  10. JackShipley
    Member
    Posted 6 years ago #

    I receive the following on upgrading manually from 2.3 to 2.5:

    Fatal error: Call to undefined function require_wp_db() in C:\Inetpub\vhosts\jdshipley.com\httpdocs\wp-settings.php on line 206

    Does the database name belong inside the parens?

    Jack

  11. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Does the database name belong inside the parens?

    No, but you do have to upload ALL of the WordPress files. Including the ones in wp-admin and wp-includes.

  12. lpantos
    Member
    Posted 6 years ago #

    I can't get into the admin panel so I can't click on 'edit' to remove anything............

  13. MichaelH
    Member
    Posted 6 years ago #

    Then you'll need to try Otto's suggestion of removing the records in wp_options.

    If that fails, try deleting and reuploading the WordPress files as detailed in Steps 7 and 8 of Upgrading WordPress Extended.

  14. jamielee1
    Member
    Posted 6 years ago #

    Hey Otto, how do you get your friends blog onto the category of friends. I would put them under "blog roll" like your site but the template i used already came with the category "friends".

  15. duluoztrip
    Member
    Posted 6 years ago #

    I have this same problem - Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/yourmus1/public_html/wp-includes/widgets.php on line 654

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

    at http://www.yourmusicsucks.com

    I can't get to the admin panel of wordpress either, I am completely new to this so I am wondering what exactly do I need to change in the files, how exactly you go go about that, and if I am upgrading myself according to the instructions how to do that since it was installed through Bluehost's Fantastico Deluxe, sorry I am not all that saavy about these things yet, so I apologize, I have been trying to understand this.

  16. jcwinnie
    Member
    Posted 5 years ago #

    My thanks for the above suggestion from Michael H.

    I had the same problem with 2.7. Followed his directions using phpAdmin on bluehost to correct the problem.

    Although it occurred on line 1044, it was same error message for wp-includes/widgets.php. The error occurred after I tried to create a second text box in the second sidebar on a Sandpress themed blog. The text box included an inline statement.

    I wanted to add a Google Blog Bar, but managed to bork my blog instead. Will wait for some clever widget maker, eh?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.