WordPress.org

Forums

Step 2 Upgrade - php file errors (6 posts)

  1. starbug72
    Member
    Posted 7 years ago #

    Upgrading from 2.1 to 2.5 - I removed the old wp-includes and wp-admin and uploaded the new folders.

    When I went to the page on my site equivalent to
    http://example.com/wordpress/wp-admin/upgrade.php.

    Warning: Invalid argument supplied for foreach() in .../wp-includes/query.php on line 683

    Fatal error: Call to undefined function update_object_term_cache() in .../wp-includes/post.php on line 2745

    I tested this out on another version first, going from 2.2 and it worked fine.

    Any ideas?

  2. Ingenius Dastard
    Member
    Posted 7 years ago #

    Getting the same error but I'm just changing servers. Will keep you posted.

  3. Willjohn
    Member
    Posted 7 years ago #

    I'm getting the same error but on line 684.
    Warning: Invalid argument supplied for foreach() in /home/lembookc/public_html/blog/wp-includes/query.php on line 684

    Fatal error: Call to undefined function: update_object_term_cache() in /home/lembookc/public_html/blog/wp-includes/post.php on line 2768

    Help! Anyone.

  4. Willjohn
    Member
    Posted 7 years ago #

    I was able to fix my problem by replacing all the root files except wp-config.php and .htaccess with the files in version 2.5.1. I had already replaced the wp-admin and wp-includes files with 2.5.1 ones.

    I hope this helps.

  5. tydende
    Member
    Posted 7 years ago #

    I'm having the same problem with line 684 on query.php

    Searching it on google I see that it is a problem on many sites. I tried replacing the files but it's still there. Anybody have a solution to this upgrading problem?

    Thanks.

  6. paamayim
    Member
    Posted 7 years ago #

    I'm also getting this.

    Warning: Invalid argument supplied for foreach() in */wp-includes/query.php on line 684

    When there is /page/x in the url, to paginate.

    Any idea?

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags