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

Error if anonymous comments disabled #5

Closed
dehgriff opened this issue Nov 20, 2020 · 2 comments
Closed

Error if anonymous comments disabled #5

dehgriff opened this issue Nov 20, 2020 · 2 comments
Assignees

Comments

@dehgriff
Copy link

I've configured commento to just allow Google login. When I submit a comment, I get this error:

commento.js:formatted:424 Uncaught TypeError: Cannot read property 'value' of null
    at HTMLDivElement.E.commentNew (commento.js:formatted:424)
    at yn (commento.js:formatted:724)
    at kn (commento.js:formatted:728)
    at HTMLButtonElement.<anonymous> (commento.js:formatted:38)

The problem is at line 827 of commento.js:

      "anonName": $(ID_GUEST_DETAILS_INPUT + id).value,

$ID_GUEST_DETAILS_INPUT evaluates to null. I assume because the Guest name box is not there.

@AlvaroDeMenard
Copy link

It doesn't work even when anonymous comments are enabled. The name textbox never shows, and trying to comment gives the error "One or more field(s) empty."

@souramoo souramoo self-assigned this Dec 26, 2020
@souramoo
Copy link
Owner

Eek yep this was an oversight on my part, fixed in 2e5026f :)

@AlvaroDeMenard this sounds like a separate bug, please could you share an example of a page with this bug on with me and I will try and fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants