• 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!

    Help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • did you enable comments in settings?

    Thread Starter kessbird

    (@kessbird)

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

    Thread Starter kessbird

    (@kessbird)

    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!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Comments ‘submit’ button broken’ is closed to new replies.