Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator t-p

    (@t-p)

    try:

    -deactivating all plugins. If the problem goes away, activate them individually to find the cause.

    -If that dose not resolve the issue, switching to the default theme to rule out any theme-specific problem.

    Thread Starter forget-me-not

    (@forget-me-not)

    It’s not a plugin issue – seems to be a theme issue. Darn! I’m able to post a comment on the default theme. I will go and hunt through arthemia’s comments.php and post if I figure it out.

    Thread Starter forget-me-not

    (@forget-me-not)

    I have tried replacing arthemia’s comments.php with the default comments.php but still no luck. When I submit a comment like “I love tomatoes any wh ich way; I am definitely going to try these!”, I am taken back to the homepage, with this URL:

    https://www.thevillagehearth.org/?s=&comment=I+love+tomatoes+any+which+way;+I+am+definitely+going+to+try+this+recipe!+&submit=Submit+Comment&comment_post_ID=998&comment_parent=0&_wp_unfiltered_html_comment=2b816f3213

    Anyone else had this issue? I am confident with html/css but not so hot on php, I’m not sure what I’m looking for to fix this…

    Seems like you’re using the GET method for the comment form. Try this:

    <form action="<?php echo bloginfo('wpurl'); ?>/wp-comments-post.php" method="post">

    Thread Starter forget-me-not

    (@forget-me-not)

    In single.php? I tried that and now don’t have a comment box at all so I’m thinking I put it in the wrong place?

    It depends on the theme you’re using. It’s the file that contains the HTML of the comment form.

    Can you post the code for your comment form here to make it easier to find where the problem is?

    Thread Starter forget-me-not

    (@forget-me-not)

    This is the comments part of single.php, with your previous suggestion

    <div class="comments">
    	<form action="<?php echo bloginfo('wpurl'); ?>/wp-comments-post.php" method="post">
    	</div>

    and the old version:

    <div class="comments">
    
    	<?php comments_template(); ?>
    
    	</div>

    comments.php here

    Thanks so much for your help!

    After reading through your posts again carefully, I’m pretty sure I’ve found where the problem is. It seems like you’ve forgotten to close off the search form with </form>.

    Now that it has nothing to do with your comment form, you can change
    single.php back to:

    <div class="comments">
    	<?php comments_template(); ?>
    </div>

    However, since you’ve enabled threaded comments, you should replace line 111 in comments.php
    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    with
    <?php comment_id_fields(); ?>

    Thread Starter forget-me-not

    (@forget-me-not)

    Joseph – thank you so much for your sleuthing! That has done the trick. Feel a bit stupid now that it was so simple, not closing the search form! Thanks again

    You’re welcome.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Comments not working – but not a 404 error!’ is closed to new replies.