Error in admin-functions
-
Hello,
For nightly builds, i was correcting this error manually. But due to great number of users using nightly builds, i thought that you should correct this error.
Exception is being thrown when posting a new or editing a post. It’s all about case sensetive column names in Mysql and can be corrected like above:
On line 39:
find
$cats_tmp = $wpdb->get_results("SELECT cat_id FROM $wpdb->categories WHERE category_parent = $parent ORDER BY $sort");and replace to
$cats_tmp = $wpdb->get_results("SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent ORDER BY $sort");AND
On line 47:
find
$cats[] = $cat->cat_id;and replace to
$cats[] = $cat->cat_ID;..
Regards,
Coshkun.
The topic ‘Error in admin-functions’ is closed to new replies.