Title: upgrade from b2 Problem / DB problem
Last modified: August 18, 2016

---

# upgrade from b2 Problem / DB problem

 *  [Chuck Reynolds](https://wordpress.org/support/users/ryno267/)
 * (@ryno267)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/upgrade-from-b2-problem-db-problem/)
 * Had problem importing, so I added the extra info to the b2 table and swithced
   names in database from old one to wp_posts.
    Everything seems ok except for a
   few errors… I get this: ——————————————————————————– Filed under: Warning: Invalid
   argument supplied for foreach() in /path-to-my-blog/wp-includes/template-functions.
   php on line 1373 — @ 2:36 pm ——————————————————————————— It seems to be a problem
   with the categories… everything looks good in database… I’ve set all posts to
   1 but still have this error. Should read like this… —————————————————- Filed 
   under: General — admin @ 7:55 am —————————————————- Any body have similar problems
   that can help? or dev guys? thanks… rYno

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

 *  Thread Starter [Chuck Reynolds](https://wordpress.org/support/users/ryno267/)
 * (@ryno267)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/upgrade-from-b2-problem-db-problem/#post-41562)
 * Also getting this error when I click on the post name and go into the individual
   posts page:
    Warning: Invalid argument supplied for foreach() in /home/rynoweb/
   www/www/blog/wp-blog-header.php on line 340 this section of wp-blog-header.php
   is this: foreach ($dogs as $catt) { $category_cache[$catt->ID][] = $catt; } ——————————————————————————————-
   and the error in template_functions.php as posted previously above is this code:
   function the_category($seperator = ”) { $categories = get_the_category(); hope
   that helps some of you to help me… 😉
 *  Thread Starter [Chuck Reynolds](https://wordpress.org/support/users/ryno267/)
 * (@ryno267)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/upgrade-from-b2-problem-db-problem/#post-41563)
 * now i have to figure out how to get comments into the respective posts…. too 
   tired tonight… will wait till morning….

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

The topic ‘upgrade from b2 Problem / DB problem’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 1 participant
 * Last reply from: [Chuck Reynolds](https://wordpress.org/support/users/ryno267/)
 * Last activity: [22 years, 2 months ago](https://wordpress.org/support/topic/upgrade-from-b2-problem-db-problem/#post-41563)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
