In WP21, a change was made to how some db tables are referenced. You can make the change yourself if you wish by modifying index.php and changing the lines
global $wpdb, $tableposts, $tablecomments, $id;
$comments_enabled = $wpdb->get_var("SELECT comment_status FROM $tableposts WHERE id=$id");
$comments_exist = $wpdb->get_var("SELECT COUNT(*) FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1'") > 0;
to
global $wpdb, $id;
$tableposts = $wpdb->posts;
$tablecomments = $wpdb->comments;
$comments_enabled = $wpdb->get_var("SELECT comment_status FROM $tableposts WHERE id=$id");
$comments_exist = $wpdb->get_var("SELECT COUNT(*) FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1'") > 0;
January 12th, 2007 at 12:38 am
Should I not upgrade to Wordpress 2.1 until I can get this new update going??
January 12th, 2007 at 8:46 am
In WP21, a change was made to how some db tables are referenced. You can make the change yourself if you wish by modifying index.php and changing the lines
global $wpdb, $tableposts, $tablecomments, $id;
$comments_enabled = $wpdb->get_var("SELECT comment_status FROM $tableposts WHERE id=$id");
$comments_exist = $wpdb->get_var("SELECT COUNT(*) FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1'") > 0;
to
global $wpdb, $id;
$tableposts = $wpdb->posts;
$tablecomments = $wpdb->comments;
$comments_enabled = $wpdb->get_var("SELECT comment_status FROM $tableposts WHERE id=$id");
$comments_exist = $wpdb->get_var("SELECT COUNT(*) FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1'") > 0;
January 12th, 2007 at 11:31 am
Thanks for the precise and quick follow up! :)