WordPress.org

Ready to get started?Download WordPress

Forums

upgrade from b2 Problem / DB problem (3 posts)

  1. Chuck Reynolds
    Member
    Posted 10 years ago #

    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

  2. Chuck Reynolds
    Member
    Posted 10 years ago #

    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... ;)

  3. Chuck Reynolds
    Member
    Posted 10 years ago #

    now i have to figure out how to get comments into the respective posts.... too tired tonight... will wait till morning....

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.