Title: Upgrade error in post.php, classes.php and query.php.
Last modified: August 19, 2016

---

# Upgrade error in post.php, classes.php and query.php.

 *  Resolved [Anrkist](https://wordpress.org/support/users/anrkist/)
 * (@anrkist)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/upgrade-error-in-postphp-classesphp-and-queryphp/)
 * It looks as if I’m upgrading from 2.1.
 * Here are the error messages I receive when I go to the main blog page.
 * Warning: Invalid argument supplied for foreach() in C:\hosting\webhost4life\member\
   ontarget\html\blog\wp-includes\classes.php on line 255
 * Warning: Invalid argument supplied for foreach() in C:\hosting\webhost4life\member\
   ontarget\html\blog\wp-includes\query.php on line 1401
 * Fatal error: Call to undefined function update_object_term_cache() in C:\hosting\
   webhost4life\member\ontarget\html\blog\wp-includes\post.php on line 3016
 * Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/upgrade-error-in-postphp-classesphp-and-queryphp/#post-933727)
 * Call to undefined function almost always means some of the files didn’t get uploaded
 *  Thread Starter [Anrkist](https://wordpress.org/support/users/anrkist/)
 * (@anrkist)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/upgrade-error-in-postphp-classesphp-and-queryphp/#post-933731)
 * Thank you, I foolishly forgot to update the files in the main directory. I did
   update admin/includes =]

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Upgrade error in post.php, classes.php and query.php.’ is closed to new
replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [Anrkist](https://wordpress.org/support/users/anrkist/)
 * Last activity: [17 years, 5 months ago](https://wordpress.org/support/topic/upgrade-error-in-postphp-classesphp-and-queryphp/#post-933731)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
