Comments 'submit' button broken (5 posts)

  1. Kessbird
    Posted 6 years ago #

    Blog in question: http://www.starwalkerblog.com

    On the comments form, the 'submit' button doesn't work. It sends the user back to the homepage of the blog and the comment is not submitted.

    I have checked through comments.php, and everything looks in order. I have replaced the comments.php file with one that works on another site, and that didn't work. I have checked and replaced the wp-comments-post.php file with one I know works, and that didn't work either.

    I don't know what else to check. I have a test site with the same theme at http://www.apocalyspeblog.com/starwalker - comments work fine on that one!


  2. shatterjack
    Posted 6 years ago #

    did you enable comments in settings?

  3. Kessbird
    Posted 6 years ago #

    Yup, comments are enabled, both in the settings and on the latest post. (Comments are closed after 30 days.)

  4. Kessbird
    Posted 6 years ago #

    Ah-ha. I think I found the cause. Turns out the search form in the sidebar was overriding the form settings in the comments form. Here's the fubaring code from the sidebar:

    <form id="searchform" method="get" action="<?php bloginfo('home'); ?>">
    <p><input type="text" name="s" id="s" size="15" />
    <input type="submit" value="<?php _e('Search'); ?>" />

    I killed it dead, and now the comments will actually post. Yay!

  5. Touchdown
    Posted 6 years ago #

    Actually, you don't have to kill the search code. Just add the close form tag which is missing.

Topic Closed

This topic has been closed to new replies.

About this Topic