Support » Developing with WordPress » Comment Submission Error

  • thelittlemercoder

    (@thelilmercoder)


    I have a custom comments section in my WordPress theme.

    If you are not logged in, and you fill all of the fields, including the required fields,
    you receive the error “ERROR: please fill the required fields (name, email).”

    Even if the fields are filled.

    My research shows that this is often caused by conflicts with plugins, I have turned all of my plugins off and it still does not work.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Custom comment forms must retain the default field names ‘author’ and ’email’. Does your form still POST to wp-comments-post.php? If you are testing your form, the email must be of a valid form (doesn’t need to work) and at least 6 chars long.

    Themes can also occasionally cause conflicts with WP core. You should try temporarily copying the relevant template and code to a default theme. If you still have trouble, there’s either an issue with the WP install or your custom comment scheme.

    You can eliminate any WP install issues by getting a fresh download and doing a manual update, except update to the same version. The only other thing to do is debug the submission process. Add a temporary line to wp-comments-post.php to var_dump $_POST. Line 24 would be perfect. The author and email keys must be present.

Viewing 1 replies (of 1 total)
  • The topic ‘Comment Submission Error’ is closed to new replies.