• Resolved 749566

    I upgraded from version 2.1 to 2.6 today and everything went perfectly, that is until I checked my posts and noticed that all the categories were blank/empty!

    Just thought I’d share how I got round it so that others can resolve the issue without stress.

    Obviously before I began the upgrade I had done an export of all posts, pages, comments and categories. Also taken a database backup and followed the rest of the instructions on the upgrade page.

    Once I had upgraded and had the problem I had to do the following to restore my categories:

    1. Set up a test wordpress site with a clean 2.6 install (make sure you install to a new dbase!!).
    2. Import your wordpress posts, pages, comments, categories xml file that you exported earlier before the upgrade.
    3. Check that the new wordpress site contains your categories.
    4. open up php my admin (or use your prefered method to access MySQL) and navigate to the new site database.
    5. select the wp_terms table then click on export, leave SQL selected then press the go button.
    6. You are presented with a sql script. Copy just the section which has the “INSERT INTO” rows.
    7. Switch to your recently upgraded database and locate the wp_terms table.
    8. choose to empty the table.
    9. click on the sql tab for the table, then paste your text from step 6 and click on Go.
    10. You now have a table complete with your categories and the original ID’s!

    This method means you retain the original links between posts and categories and obviously saves you having to laboriously go through adding new tags and reassigning them to posts.

    I hope this post can help others in a similar predicament.

    Andrew

Viewing 3 replies - 16 through 18 (of 18 total)
  • jrevillini
    I’m having the same problem with the wp_terms table. I upgraded from 2.0.2 to 2.6 and also had: -2-2-2-2-2-2-2-2-2 throughout the terms table. I’ve gone in and tried cowboyuk80’s advice, but didn’t seem to work (only Blogroll, Uncategorized showed up under title headers)…so now I’ve emptied the terms table.

    Where do I go from here? I’m also in the process of manually adding category descriptions to the wp_term_taxonomy but will wait to see if there’s another way. I have a lot of categories, manual will take awhile.

    If anyone can help, I would really appreciate it.

    Not sure since this was originally resolved, someone might see my message and hopefully reply??

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘WordPress Upgrade – Categories Empty / blank’ is closed to new replies.