$error_array = $this->form_validation->error_array();
if (is_array($error_array ) && !empty($error_array)) {
// Generate a single message for all fields combined:
echo '<div class="error">Something is wrong with the form values.</div>';
// Or loop through the errors and output a message per fieldname
foreach($error_array as $fieldname => $message) {
// The $message variable contains the message you want to hide
echo '<div class="error">There is a problem with the value for the ' . $fieldname . ' field.</div>';
}
}