剛做完升級,大至上無問題,只是使用了的Cordobo Green Park板模後出現了:
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
改回默忘板模之後就無問題,但不肯定是否板模的問題。
接下來要試播件了。
————————————————————————————————————————–
24/01/07 補充
這個問題會出現在三欄的板模中,在Cordobo的網站上找到了一個解決方法,
[code]
$link_cats = $wpdb->get_results(”SELECT cat_id, cat_name FROM $wpdb->linkcategories”); to: $link_cats = $wpdb->get_results(”SELECT cat_id, cat_name FROM $wpdb->categories WHERE cat_name = ‘Blogroll’”);
[/code]
依照這個方法,是可以解決問題,但又有一個問題是沒有了Blogroll這個項目?
但在兩欄的板橫中沒有發生。
又,如果使用WordPress Widgets這個插件的話,又沒有問題發生。
You must be logged in to post a comment.