Table ‘wordpress.wp_post2cat’ doesn’t exist - Error while upgrading to WordPress 2.3

 

Just today I performed an upgrade to the brand new WordPress 2.3.

Problem #1

The upgrade went without a hitch but the moment I refreshed my site I got this long error message that went like…


WordPress database error: [Table 'wordpress.wp_post2cat' doesn't exist]
SELECT p2c.category_id AS cat_id, COUNT(p2c.rel_id) AS numposts, UNIX_TIMESTAMP(max(p.post_date_gmt)) + ‘0′ AS last_post_date, UNIX_TIMESTAMP(max(p.post_date_gmt)) AS last_post_date_gmt FROM wp_post2cat p2c INNER JOIN wp_posts p ON p2c.post_id=p.id WHERE (p.post_status=’publish’ OR p.post_status=’static’) AND p.post_date_gmt<=’2007-09-27 11:44:24′ GROUP BY p2c.category_id ORDER BY numposts DESC…

The same error kept appearing on the top of every single page. Now be aware that this new version of WordPress has a radically different table organisation. In all probability that was the cause of this error.

My first task was to disable every single plug-in I had installed. I was hoping that the error would go away immediately. It did not. After a bit of investigation I figured that even though the WP-Cache plug-in was disabled, it kept delivering the cached pages nevertheless. Deactivating it from the Plugins Panel didn’t help much. What I had to do was to go to Options > WP-Cache and disable it there. Only then did the caching stop.

The next step involved reactivating the plug-ins one-by-one and refreshing the site every time to see which plug-in was causing the error. I know it’s a painstaking task - but there’s no easy way out. Of course, you can make some well-aimed guesses, as the most likely culprit(s) are the plug-in(s) dealing with post categories, keywords, tags etc. Likewise, it didn’t take me long to catch the darned plug-in red-handed. Turned out to be Jerome’s Keywords (v2.0 beta 3). I use the Jerome’s Keywords Related Posts plug-in to display reading suggestions after each post. This plug-in in turn is dependent on Jerome’s Keywords.

As of now, I don’t think there’s any solution to this - except for deactivating the plug-in. I’ve posted a comment at the author’s site and waiting for some sort of a response.

Problem #2

As soon as I tackled the first one, a new one crept up silently and threw me off-balance again. This time the error message appeared when I tried to create a new post and save it. The screen went totally blank except for a lonely error message…

WordPress database error: [Table 'wordpress.wp_categories' doesn't exist]
SELECT c.cat_ID AS ID, MAX(p.post_modified) AS last_mod FROM `wp_categories` c, `wp_post2cat` pc, `wp_posts` p WHERE pc.category_id = c.cat_ID AND p.ID = pc.post_id AND p.post_status = ‘publish’ AND p.post_type=’post’ GROUP BY c.cat_id…

This one wasn’t hard to diagnose as half of my plug-ins were already deactivated. I simply started rolling back the activations one-by-one and had the trouble-maker in a minute or two. This time it was Google XML Sitemaps Generator (v3.0b8). Visiting the authors site took me to a post at the support forum at WordPress.org. Seems like this version of the plug-in has some sort of a conflict with Popularity Contest. The solution is quite simple here. Simply download the new v3.0b10 of this plug-in and update it. The error message disappears right-away.

So here are two very common problems you’re going to face while upgrading to WordPress v2.3. This post is intended to help those who’re facing the same problem and groping in the dark as I was a couple of hours back.

All the best.


Switching to the domain-based FeedBurner Pro service

 

I recently purchased Managed DNS service from my web-host (ComputingHost) as a result of which I no longer have to depend upon their tech support to cater to my DNS record modification needs. Consequently, I decided to switch to the FeedBurner Pro domain based feed service. Domain based …

Continue reading »


Spot the double images! A video compilation of some cool optical illusions

 

Here’s a video compilation of some of the coolest optical illusions. Can you spot the double images in each slide?

Best Optical Illusions - video powered by Metacafe

Continue reading »


Hits4Pay: Get paid to read commercial emails on topics that You choose

 

An average internet user comes across plenty of Get Rich Quick schemes floating around on the net. Almost all of these lure members in with promises of delivering an insane amount of riches in just 3-4 days while you just sit at your computer building up your referral …

Continue reading »


Performance Data Resources - Your ultimate resource site for refurbished IBM hardware

 

Offices who employ IBM AS/400, iSeries and i5 hardware may find solace in the fact that they don’t have suffer headaches anymore over the replacement of damaged but hard-to-find hardware.
Performance Data Resources or PDR Inc. is an authorised IBM Business Partner, who’ve been around since 1991 and is a leading solutions provider for IBM’s High-Availability (HA) series of hardware and …

Continue reading »


Digg takes a giant leap into the Social Networking zone

 

The immensely popular Social Media site Digg took a giant leap into the Social Networking zone. Digg announced a series of new features that takes it beyond just digging and burying articles with promises for more to come. In an email I received a couple of hours back, they introduced the all new Digg Profiles.
The basic user profiles that Digg …

Continue reading »


Free SEO ranking techniques not working for you? Try Apogee

 

Lets say, you own a web-based business that isn’t working all that well. You don’t seem to get too many hits from the major search engines, despite trying out all the “proven” SEO techniques you dug up from the net. Your best bet under such circumstances is to turn to professional help - like Apogee Search - who can get …

Continue reading »


Xinu: Your one-stop SEO shop

 

Well, almost ! Xinu is this great new “Jack-of-all-trades” tool that analyses and returns a horde of SEO (Search Engine Optimisation) related information regarding your site, neatly stacked in a single page. A real time-saver if you ask me.
All you go to do is enter your site’s URL and hit Go. The results are fetched using AJAX - so you …

Continue reading »