Title: Register errors
Last modified: August 19, 2016

---

# Register errors

 *  [Jason](https://wordpress.org/support/users/grafikimon/)
 * (@grafikimon)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/register-errors/)
 * I am making a plugin that checks a field against a code that is needed to register.
 * My question is how do i generate a error that shows up on the registration page.
 * this is the code I wrote but it gives me a object missing error. What am I missing?
 *     ```
       function LicenseError(){
       $errors->add('wrong_license', __('<strong>ERROR</strong>: This is not a valid license number.'));
       }
       ```
   

The topic ‘Register errors’ is closed to new replies.

## Tags

 * [error codes](https://wordpress.org/support/topic-tag/error-codes/)
 * [login](https://wordpress.org/support/topic-tag/login/)
 * [Registration](https://wordpress.org/support/topic-tag/registration/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jason](https://wordpress.org/support/users/grafikimon/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/register-errors/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
