Title: Error in admin-functions
Last modified: August 18, 2016

---

# Error in admin-functions

 *  [slyshark](https://wordpress.org/support/users/slyshark/)
 * (@slyshark)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/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.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Ryan Boren](https://wordpress.org/support/users/ryan/)
 * (@ryan)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/error-in-admin-functions/#post-140860)
 * Thanks. Could someone [write a bug](http://mosquito.wordpress.org/) against this?
 *  [Ryan Boren](https://wordpress.org/support/users/ryan/)
 * (@ryan)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/error-in-admin-functions/#post-140887)
 * [http://mosquito.wordpress.org/view.php?id=832](http://mosquito.wordpress.org/view.php?id=832)
 *  Thread Starter [slyshark](https://wordpress.org/support/users/slyshark/)
 * (@slyshark)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/error-in-admin-functions/#post-140902)
 * You are welcome. It was ennoying me to update it everytime I update the version
   by nightly builds.
 * Anyway, thanks for taking time about it.
 * Regards,
    Coshkun.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error in admin-functions’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [slyshark](https://wordpress.org/support/users/slyshark/)
 * Last activity: [21 years, 4 months ago](https://wordpress.org/support/topic/error-in-admin-functions/#post-140902)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
