Wordpress Database Errors!! Please Help- Will pay $5

Discussion in 'Databases' started by dailymoolahdotcom, Nov 18, 2007.

  1. #1
    This error started popping up every time I want to post, edit a post, or even publish a comment on my blog. It started after a blotched installation of the WP Super Cache Plugin (http://ocaoimh.ie/wp-super-cache/) and has been cropping up since then.

    PLEASE HELP ME FIX THIS PROBLEM. It'd be much appreciated :)

    My blog's url is www.dailymoolah.com

    Here's the exact error when I try to post :

    WordPress database error: [Table 'nextaffi_wrdp1.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

    WordPress database error: [Table 'nextaffi_wrdp1.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

    Warning: Cannot modify header information - headers already sent by (output started at /home/nextaffi/public_html/dailymoolah/wp-includes/wp-db.php:160) in /home/nextaffi/public_html/dailymoolah/wp-includes/pluggable.php on line 391
     
    dailymoolahdotcom, Nov 18, 2007 IP
  2. Edynas

    Edynas Peon

    Messages:
    796
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You are obviously missing tables in the dtaabase that the plugin needs. What happens if you disable it and enable it agian. As it should insert those tables by it's own.
    Otherwise I would suggest adding the tables by hand using phpmyadmin
     
    Edynas, Nov 19, 2007 IP
  3. yulia

    yulia Peon

    Messages:
    87
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Maybe you should check the WP version needed to run that plugin
     
    yulia, Nov 19, 2007 IP
  4. msaqibansari

    msaqibansari Peon

    Messages:
    84
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Did you uninstall the WP Super Cache Plugin? If not first remove this plugin and then execute following query to create blank table which was created by wordpress at the time of installation.

    CREATE TABLE post2cat (
    rel_id bigint(20) NOT NULL auto_increment,
    post_id bigint(20) NOT NULL default '0',
    category_id bigint(20) NOT NULL default '0',
    PRIMARY KEY (rel_id),
    KEY post_id (post_id,category_id)
    ) $charset_collate;


    Note: before creating new table ensure table is not exist. If table "post2cat" is exist the rename this table and create new one and then import all record from renamed table.
     
    msaqibansari, Nov 19, 2007 IP
  5. varunkrish

    varunkrish Peon

    Messages:
    107
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    its a plugin conflict for sure .. try disable all unwanted plugins
     
    varunkrish, Nov 25, 2007 IP
  6. Edynas

    Edynas Peon

    Messages:
    796
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I agree with you Post2Cat is a core table in wordpress 2.+ and if you don't have it as it looks like then it means you are running on WP1.5 this will mean that you either should upgrade your wordpress (it is recommanded anyway as there exploits for older wordpress versions) and then reinstall the plugins or forget this plugin and look for an other option
     
    Edynas, Nov 25, 2007 IP