checkaicode() is a function from AuthImage plugin. you may have disabled that plugin but the code is still there. remove these lines from wp-comments-post.php, if they are there and your authimage plugin is disabled:
// AuthImage
if ( !checkAICode($comment_code) )
die( __(‘Error: please enter the valid authorization code.’) );