[resolved] geting error while submitting comment (6 posts)

  1. anithamandalapu
    Posted 3 years ago #

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

  2. anithamandalapu
    Posted 3 years ago #

    my site is villagestories.com

  3. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

    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?

  4. anithamandalapu
    Posted 3 years ago #

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

  5. Neal Bloome
    Posted 3 years ago #

    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.

  6. anithamandalapu
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.