WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. anithamandalapu
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    my site is villagestories.com

  3. Andrew
    Forum Moderator
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

  5. Neal Bloome
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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

Tags

No tags yet.