I'm not sure how long this has been happening, but I realized today that the comment form on a site of mine is throwing this error:

The form you submitted contained the following errors

The name field is required The email field is required

This is happening even when both fields are filled out.

My template code is here: http://pastie.org/6168028

Any idea why this would be happening?

  • Can you post the complete code for the entire template to www.pastie.org and post the link back here? – Anna_MediaGirl Feb 14 '13 at 20:26
  • Here's the code: pastie.org/6168028 – Brett Feb 14 '13 at 20:31

Have you tried adding names to your form fields that correspond to the EE comment fields? I believe these would be required for the form to work.

<input name="name" type="text" id="comment_name" placeholder="Enter your name.">
<input name="email" type="email" id="comment_email" placeholder="Enter your email."> ...etc
| improve this answer | |
  • 1
    Indeed, the name property is definitely required. – Derek Hogue Feb 14 '13 at 22:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.