Database Error at OrganicPassion » Organic Passion

Recent Posts

September 25, 2008- How do you POP your Pop Corn?

September 24, 2008- Learn How To Treat Eczema

September 21, 2008- Hair Oil - A Need For Anyone And Everyone

September 20, 2008- Ayurvedic Tips For Long Black Hair

September 13, 2008- How Much Antioxidant Do We Need?


Database Error at OrganicPassion

Apologies guys!

I just did a WordPress upgrade (2.3) and I am experiencing some serious database error. I reckon you will face the same error too when you browse through the Categories… :(

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

Initially, I thought it was some tables were dropped during the upgrade or a database error is occurring at the hardware-level. After some checks, it looks very much like the later. I did a database restore and the error still persist.

So, I did a search and it looks like others had experienced the same problem too. Currently, the help I have gone through has advised me to deactivate my Google Sitemap plugin, but this doesn’t seem to work.

I am still searching for a solution… so please bear with me while I fix this.

UPDATES

4:30pm - It looks like I will have to deactivate and reactivate the plugin one by one to find the culprit. Gee…this is quite an ordeal.

4:45pm - I just found a list of incompatible plugins here! I am going through the list to pin-point plugins that are not compatible with this WordPress 2.3

5:000pm - I have deactivated all “suspect” plugins and I am reactivating them. Feel like banging my head on the wall…haha :P

5:03pm -Need to seek new solutions.

5:30pm - According to this post by Ryan Boren, “post2cat, and link2cat tables were dropped and replaced by three new tables. Plugins that reference the old tables will break.

6:42pm -After going through countless of blogs and forums, I have found my “bug”:

<?php $myvar = $wp_query->query_vars['cat']; ?>

It appears to be that the method is querying the wrong table and wrong field name.

Problem fixed! :)


Top Blogs
Share and Enjoy:
  • del.icio.us
  • Furl
  • Reddit
  • description
  • YahooMyWeb
  • Digg
  • Live
  • StumbleUpon
  • Technorati
  • TwitThis



---------------------------------------------------------------- Miessence

Related Posts
Setting up Mailing List for your Business
Fort Worth Nursing Homes
How to Exercise in the Office?

1 Comment »

  1. Zim said,

    December 3, 2007 @ 11:12 pm

    Sometimes we mess with a problem so deep that we can’t see how to solve it properly. Wanting to solve this issue quickly, I tried to spot the problem in the code, instead of isolating the problem this way. Helpful post, buddy :)
    Thanks

RSS feed for comments on this post · TrackBack URI

Leave a Comment