Support » Fixing WordPress » geting error while submitting comment

  • Resolved anithamandalapu

    (@anithamandalapu)


    i had a problem.when i am submitting the comment,there 404 error is coming.how to solve that one .please suggest me.

Viewing 5 replies - 1 through 5 (of 5 total)
  • my site is villagestories.com

    Moderator Andrew Nevins

    (@anevins)

    Just to start, your contact form should not have a 6 character requirement on the name field.

    Are you using a plugin for the comment forum and which?

    no,i didn’t use any plugin for that,i wrote the validation code for that particular fields.

    In your comment form you have this line of code (well in your html source)

    <form name="com" method="post" onSubmit="return Comment()">

    And your javascript just does it’s validation and sends the request but the request doesn’t go anywhere because your form field should look like this

    <form name="com" action="http://villagestories.com/wp-comments-post.php method="post" onSubmit="return Comment()">"

    Notice that you didn’t include the action attribute on your comment form, currently when your javascript returns true it looks for the action field and when it doesn’t see it, the system fails.

    Add the action field in your comment template and try again, it should fix your issue.

    @neal Bloome
    thank u so much…it is working now.thanks a lot

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘geting error while submitting comment’ is closed to new replies.