Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'parentNode' of null #1

Open
mediaformat opened this issue Mar 24, 2015 · 3 comments
Open
Labels

Comments

@mediaformat
Copy link

This plugin looks promising, I am however getting a js error.

Javascript error : Uncaught TypeError: Cannot read property 'parentNode' of null

Not sure why, but the getElementById("") is empty:

<script type="text/JavaScript">nscrmhp = document.getElementById(""); nscrmhpp = nscrmhp.parentNode; nscrmhppp = nscrmhpp.parentNode; nscrmhppp.parentNode.removeChild(nscrmhppp);</script>
@freak3dot
Copy link
Owner

Area you getting any other PHP errors?

Based on a quick look at the code, the missing bit is derived from the label_list and the honeypot selected as label. Are you using the new method for WordPress comment form?

@mediaformat
Copy link
Author

I can't seem to find any info about old vs. new method. I am using twentytwelve.

@freak3dot
Copy link
Owner

Looks like the array of comment fields started in the twentyten theme.
http://codex.wordpress.org/Function_Reference/comment_form

I'll give it a try with twentytwelve and see if I can't figure out what is going on.

@freak3dot freak3dot added the bug label Mar 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants