Written by nitinpai on January 2nd, 2008
Wordpress Database Error – Table ‘wp_post2cat’ doesn’t exist
Issues, Wordpress
20 responses
I recently upgraded my hosted Wordpress from version 2.2 to 2.3.1. The upgradation process went smoothly but something strange happened when I tried to log into the administration dashboard. When I logged in, the page showed me a message stating that my database was old and I needed to upgrade it. I did as it suggested and the dashboard came into picture as usual. All till this point seemed fine, until I did the following things:
- Tried to add a new category
- Tried to edit a post
- Tried to comment from the blog post page
When I tried to do the above things I was shown a big fat error message which cried out,
WordPress database error: [Table 'wordpress.wp_post2cat' doesn't exist]
SELECT cat_ID AS ID, MAX(post_modified) AS last_mod FROM wp_posts p LEFT JOIN wp_post2cat pc ON p.ID = pc.post_id LEFT JOIN wp_categories c ON pc.category_id = c.cat_ID WHERE post_status = ‘publish’ GROUP BY cat_ID
I managed to resolve this error in some time but those few moments were somewhat shocking. If you are getting the same error, the solution is quite easy. At first the error looks as something has gone wrong with your database but believe me, your database is fine. The problem maker are the plugins. The main cause of the above error are the following plugins:
- Google Sitemaps Generator
- Posts by Author plugin
- Ultimate Tag Warrior
- Similar Posts
Just disable these plugins and you should see your error disappear. You can later put in the latest versions of the above plugins and activate them. The Ultimate Tag Warrior plugin should not be required in my opinion since Wordpress 2.3 + has the feature of tagging a particular post.
Always remember, before upgrading a Wordpress to a newer version make a double check on the compatibility of the plugins you have already installed. The guys at Wordpress have made out jobs much more easier by putting an alphabetically sorted list of compatible plugins with Wordpress 2.3.
So when you install a plugin for Wordpress in future do the following:
- Download it from the official Wordpress plugin repository
- Check the version of Wordpress till which the plugin is compatible with
- Backup your blog through Wordpress Export feature before trying out a plugin.
Sometimes if you have self coded the theme, the error might not disappear because you might have used some tables like “wp_post2cat” which has been discarded in the newer version. So if your error is still not resolved try using the default theme (Kubrick) and then work your way out.

20 Responses
Friday, February 8, 2008
I have been visiting this site a lot lately, so i thought it is a good idea to show my appreciation with a comment.
Thanks,
Jim Mirkalami
Thursday, February 14, 2008
That was pretty interesting. Thanks for sharing!
-Dre
Monday, February 18, 2008
Just wanted to say hello and great blog!
Tuesday, February 19, 2008
Great blog!
Friday, February 29, 2008
Thanks for the tip! I was going out of my mind trying to figure out what the problem was. Thanks again!
-dave
Saturday, March 1, 2008
@Dave –
I am glad your problems your solved
Wednesday, July 9, 2008
thanks for the fix. This totally helped!
Wednesday, July 9, 2008
Thanks for the tip! I was going out of my mind trying to figure out what the problem was. Thanks again! To RSS!
Friday, November 21, 2008
I had the same error caused by Simple:Press Forum plugin.
Wednesday, March 11, 2009
[...] for 2009-03-08 Filed under: del.icio.us — cinchel @ 12:00 am Wordpress Database Error – Table â??wp_post2catâ?? doesnâ??t exist | Techtracer dam google site map generator. all fixed now.. (tags: info wordpress error) Canon EF-S lens mount [...]
Thursday, April 2, 2009
This article needs to be promoted more. I see this a lot with people who finally upgrade their old blogs and then see this error, who are using a theme which was modified from the default (kubrick) theme or one of its derivatives. So if it isn’t a plugin, it might be the theme.
Tuesday, June 2, 2009
Great post! Just wanted to let you know you have a new subscriber- me!
Thursday, June 18, 2009
[...] Wordpress Database Error Table 39 wp post2cat 39 doesn 39 t exist Posted by root 14 minutes ago (http://techtracer.com) Tried to add a new category tried to edit a post tried to comment from the blog post page techtracer is powered by wordpress amp sleeko 1 0 Discuss | Bury | News | Wordpress Database Error Table 39 wp post2cat 39 doesn 39 t exist [...]
Wednesday, September 16, 2009
Had to comment great blog well done.
Tuesday, October 6, 2009
?????????!
Tuesday, October 20, 2009
very nice gread article thanks
Tuesday, December 1, 2009
Thanks for sharing this. I had a moment of panic until I googled this. Much appreciated!
Tuesday, January 5, 2010
[...] En cas d’erreur « Wordpress Database Error – Table ‘wp_post2cat’ doesn’t exist », il est fort probable que celà vienne d’un plug-in, comme j’ai pu le lire chez TechTracer. [...]
Wednesday, January 6, 2010
best blog!!!
Saturday, March 6, 2010
?????????!)