Title: Error &#8211; TypeError: element is null
Last modified: September 1, 2016

---

# Error – TypeError: element is null

 *  Resolved [nm](https://wordpress.org/support/users/gmn1/)
 * (@gmn1)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/error-typeerror-element-is-null/)
 * I keep getting the following error on the firebug console on the login page.
 * TypeError: element is null
    [http://localhost/wordpress/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%2Fwordpress%2Fwp-admin%2F&reauth=1](http://localhost/wordpress/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%2Fwordpress%2Fwp-admin%2F&reauth=1)
   Line 19
 * [https://wordpress.org/plugins/wp-custom-login/](https://wordpress.org/plugins/wp-custom-login/)

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

 *  Plugin Author [Ninos](https://wordpress.org/support/users/ninos-ego/)
 * (@ninos-ego)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/error-typeerror-element-is-null/#post-7467237)
 * Hey there,
    sorry for the late response. Do you may have a link which I can access(
   not localhost).
 *  Thread Starter [nm](https://wordpress.org/support/users/gmn1/)
 * (@gmn1)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/error-typeerror-element-is-null/#post-7467248)
 * Hi Nino. Here you go [http://twofourcarats.com/go/](http://twofourcarats.com/go/)
   
   Thanks
 *  Plugin Author [Ninos](https://wordpress.org/support/users/ninos-ego/)
 * (@ninos-ego)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/error-typeerror-element-is-null/#post-7467255)
 * In wp-custom-login.php of my plugin can you change line 24 from
    `if( typeof 
   element !== 'undefined' && element.value == '' )` to `if( typeof element !== '
   undefined' && element != null && element.value == '' )` and try again?
 *  Thread Starter [nm](https://wordpress.org/support/users/gmn1/)
 * (@gmn1)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/error-typeerror-element-is-null/#post-7467258)
 * Thanks Nino. It worked.
 *  Plugin Author [Ninos](https://wordpress.org/support/users/ninos-ego/)
 * (@ninos-ego)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/error-typeerror-element-is-null/#post-7467259)
 * *Ninos 😛 Perfect, I’ll release a new version then 🙂

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

The topic ‘Error – TypeError: element is null’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-custom-login.svg)
 * [WP Custom Login](https://wordpress.org/plugins/wp-custom-login/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-custom-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-custom-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-custom-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-custom-login/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Ninos](https://wordpress.org/support/users/ninos-ego/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/error-typeerror-element-is-null/#post-7467259)
 * Status: resolved