Title: [Plugin: WP-reCAPTCHA] Javascript Console / Firebug Shows Error
Last modified: August 19, 2016

---

# [Plugin: WP-reCAPTCHA] Javascript Console / Firebug Shows Error

 *  Resolved [saphod](https://wordpress.org/support/users/saphod/)
 * (@saphod)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-recaptcha-javascript-console-firebug-shows-error/)
 * Although the reCaptcha plugin works well (2.9.1), I get a JavaScript error in
   Firefox 3. Firebug shows the following error: “sub is null”.
 * The source code is:
 *     ```
       var sub = document.getElementById('submit');
       sub.parentNode.removeChild(sub);
       ```
   
 * I don’t know why this error happens… maybe because “submit” is not a unique name
   or it is defined AFTER the script?

Viewing 1 replies (of 1 total)

 *  Thread Starter [saphod](https://wordpress.org/support/users/saphod/)
 * (@saphod)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-recaptcha-javascript-console-firebug-shows-error/#post-855723)
 * OK, problem solved.
 * Actually, the call to the ‘comment_form’ hook in my template was BEFORE the “
   Submit”-Button, therefore the ID ‘submit’ wasn’t even initialized when the JavaScript
   called it – hence it was NULL.
 * I have adapted my comments-php (rather than the plugin), and it works fine now–
   no JavaScript error any longer.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP-reCAPTCHA] Javascript Console / Firebug Shows Error’ is closed
to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [saphod](https://wordpress.org/support/users/saphod/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-recaptcha-javascript-console-firebug-shows-error/#post-855723)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
