Undefined variable for error message, incorrect message from wp_error