Upgrading to 2.3 breaks some plugins in WordPress

November 6th, 2007 by rvdavid Leave a reply »

“WordPress database error: [Table 'mydatabase.wp_post2cat' doesn't exist]“

Recently, I’ve started receiving the above error message after I created my posts. A little unnerving, but it seemed to be alright. The site was running fine aside from the errors.

After trying to force an upgrade of my WordPress Database – which did not work, I looked around a little more and apparently, the following tables have been removed from WordPress in it’s latest version 2.3:

  • post2cat
  • link2cat
  • categories

Needless to say, upon finding out about this, I just knew that the errors would have been coming from one or a few of my many plugins. So I systematically disable the WordPress plugins that I suspected may have used any of the tables mentioned above.

The culprit was the google sitemaps plugin for WordPress by http://www.arnebrachhold.de/ after deactivating this plugin, the error disappeared.

So if you are experiencing the same sort of issues and errors, the first place I’d suggest to look into is your plugins that may be using the “post2cat”, “link2cat” and “categories” WordPress tables.

It’s times like these that make me wish that php had added Exceptions earlier. It would have been very easy to track this error down if I had a stack trace in front of me rather than having to do guess work debugging. Debugging someone elses procedural spaghetti is never an easy job.

For “quick debugging”, the next step would have been to place random “die” statements at key parts of the program to trap where the error was coming from. *shudder*

if you enjoyed this post, make sure you subscribe to my RSS feed!
You can also follow me on Twitter here.

No related posts.

Advertisement

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.