I am getting a very similar sidebar error to those reported by sportech and wdg, above–but I’m running 2.0.4, and terrified of updating:
This is the base code in the sidebar:
<?php if (is_home()) { ?>
<?php
$link_cats = $wpdb->get_results("SELECT cat_id,
cat_name FROM $wpdb->categories WHERE link_count!='0'");
foreach ($link_cats as $link_cat) {
?>
The error report is:
WordPress database error: [Unknown column ‘link_count’ in ‘where clause’]
SELECT cat_id, cat_name FROM wp_categories WHERE link_count!=’0′
Warning: Invalid argument supplied for foreach() in /home/formytum/public_html/wp-content/themes/Antique-Modern/sidebar.php on line 10
The fix is supposed to be, according to Michael H:
revise your sidebar.php to use the template tag, wp_list_bookmarks(), or change your theme to one that is compatible with 2.2.
While I can trace sidebar code, and know something of the function of each section, I can’t either debug this code or figure out how to use the template tag, as Michael H. instructed.
My site, with the error message still holding forth, is
(I always have to explain) a health-education site for IBS, called For My Tummy, https://www.formytummy.com.
TIA