starbug72
Member
Posted 1 month 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?
ipruthi
Member
Posted 3 weeks ago #
Getting the same error but I'm just changing servers. Will keep you posted.
Willjohn
Member
Posted 1 week 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.
Willjohn
Member
Posted 1 week 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.
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.