'ERROR: please fill the required fields (name, email). in Wordpress Comment
I have a problem submitting comment form for not signed in users. When I try to submit the forms, it is giving me an error -
ERROR: please fill the required fields (name, email).
I am using default template for WordPress. I have tried to deactivate the plugins one by one to make sure that if this is not a conflict, but then it is also not working. However, It's working fine for logged in users.
Solution 1:[1]
You can just make the email and name fields not required, To achieve this, go to Dashboard > Settings > Discussion
and uncheck the Comment author must fill out name and email.
Edit: Read the comments for actual solution ...
Solution 2:[2]
I had the same issue. Check the code below within your theme and remove 'comment-form' and 'comment-list'.
add_theme_support(
'html5',
array(
'search-form',
//'comment-form',
//'comment-list',
'gallery',
'caption',
)
);
Note this question should be on WordPress stackoverflow.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | Nuno Sarmento |