Wordpress 2.6 Upgrade – Fix Missing Categories

Apparently I’m not the only one having problems with the categories after a Wordpress 2.6 upgrade.

So, time to give something back to the Wordpress community, some screenshots on how I fixed it.

First of all, I upgraded from 2.2.3 to 2.6, it’s possible this solution will work for you, but I don’t make any promises.

I started by going to phpMyAdmin and having a look at the wp_term_taxonomy table, and noticed all the descriptions where missing.

When I took a look at the backup file I made, more specifically, the wp_categories piece, I noticed the counts and ids matched up.

Empty Descriptions

I then manually edited each record, just hit the pencil icon, and filled in all my descriptions again. If you know some SQL you could do this faster, but anyway, everyone can do it manually :)

Corrected Descriptions

After I’ve done this, I visited my admin section and noticed the Descriptions were filled in again. But there was no Name, and all my posts still had empty categories linked to them.

To fix this, visit http://your-site/wp-admin/categories.php?action=edit&cat_ID=1 where 1 is the category id to edit. Fill in a Name and a Slug, the url name for your category, and save it.

Repeat this process for all your categories, until they all have a Name again.

Edit Names and Slugs

And that’s it! Categories fixed, posts linked, category urls working again.

All Fixed

Good luck!

202 reacties op “Wordpress 2.6 Upgrade – Fix Missing Categories”

  1. Dave zegt:

    I have the newest wordpress
    Version 2.8

    and I’m losing categorys, granted im going thru every page and putting the right name of the band back again, and then sometimes it dissappears like i was on page 11 then i was @ page 8 then I stoped and then boom back to 11??

    Thanks
    Dave
    AIM – youaretehscene

  2. TravelMan zegt:

    Thanks for posting this David – really helpful!

    (worth mentioning that the second time a category disappeared it was because it was empty of posts….took 10 minutes to figure that one out!!)

Reageer