mybaseb1
Member
Posted 5 years ago #
I upgraded to wordpress 2.1 last night and received the following error message where my blogroll links usually are:
"WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
SELECT cat_id, cat_name FROM"
I've read a couple other posts but am so confused.
Please help quickly.
chrisos
Member
Posted 5 years ago #
Hi,
I think the problem is in tiga.php:
function tiga_links_widget($args)
{
global $wpdb;
extract($args);
$before_title_loc = '<li class="left-wp-widget %2$s">'.$before_title;
$after_title_loc = $after_title.'
'.$after_widget;
/* Links from the 'Links Manager' */
$link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->categories WHERE link_count>0");
$link_cat =$link_cats[1];
//{
$toto= "";//$link_cat->cat_id;
echo $before_title_loc.$after_title_loc;
$book_cur_chrisos = 'orderby=rand&categorize=1&category='.$toto.'&category_orderby=id&show_images=0&show_description=0&hide_invisible=1';
//before=&after=<br>&
//$book_cur_chrisos = 'category='.$toto;//.'&before=<tata>&after=</tata>';
//&title_before='.$before_title_loc.'&title_after='.$after_title_loc
//echo $book_cur_chrisos;
//wp_list_bookmarks('before=<span>&after=</span>&show_images=1&show_description=0&orderby=url');
wp_list_bookmarks($book_cur_chrisos);
echo $after_widget_loc;
//}
}
chrisos
Member
Posted 5 years ago #