Forums

[resolved] Comments don't work; blank page (9 posts)

  1. tinkleondabeach
    Member
    Posted 1 year ago #

    When I try to leave a comment, nothing is posted, but I am then referred to a blank page: http://ogry.net/wp-comments-post.php
    My blog url is http://ogry.net

  2. tinkleondabeach
    Member
    Posted 1 year ago #

    I looked at all the other related topics, and still cannot resolve this issue. Please help!

  3. tinkleondabeach
    Member
    Posted 1 year ago #

  4. robbaker
    Member
    Posted 4 months ago #

    I know this thread is older than dirt, but if you're still around, would you mind telling me how you resolved this issue?

  5. stew278
    Member
    Posted 4 months ago #

    The above link is a dead link. I've got the same problem now ... completely out of the blue too. For no apparent reason, comments are dead - when I try to post one, I get a blank wp-comments-post.php page. I've upgraded as well to 2.8.1, but no luck there.

    Can someone post a good step-by-step solution, and maybe even make it a sticky? I've been looking through the forums here, but have not found a solution yet to this problem that works (for me).

    Please, if someone with some skills can help out here, it'd be greatly appreciated....

  6. alexo05
    Member
    Posted 3 months ago #

    FYI... I was having this same problem, and I realized that I was missing this line of code near my submit button:

    <?php comment_id_fields(); ?>

    So in my comments.php file, it looks like this:

    <p><button type="submit" name="submit" id="sub">Submit</button>
            <?php comment_id_fields(); ?>
            <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>"></p>

    In the Default WP theme, the code looks like this:

    <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
    <?php comment_id_fields(); ?>
    </p>
  7. arkabc
    Member
    Posted 3 months ago #

    That didn't work for me...still searching for an answer. Like the idea of someone posting a step by step.

  8. efishinsea
    Member
    Posted 3 months ago #

    Hey folks

    After much struggling with this, I think I have found that the issue is with older themes not being 100% compatible with newer versions of WordPress.

    If you think this might be your problem, or are willing to try something else, follow these steps:

    1. Open up your WordPress theme folder and rename comments.php to comments.bak.php.
    2. Copy (don't move) the comments.php file from the \wp-content\themes\default folder to *your* theme folder
    3. Clear your browser cache.
    4. If you are using any sort of caching Plug-In, make sure to clear that cache as well
    5. Load WordPress and try making a comment

    I've previously tried everything I have read about on these and other forums with no luck. Doing this worked for me.

    If it works for you, you can then try editing the comments.php page you copied from the 'default' to match your theme's layout, etc.

    Good luck!

  9. smackhappy
    Member
    Posted 3 months ago #

    I added this line to the comments.php file within the <form> tag and it worked.

    <input type="hidden" name="comment_post_ID" value="<?php echo $post->ID; ?>" />

    If that doesn't work, the id may be expressed like this:

    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />

Topic Closed

This topic has been closed to new replies.

About this Topic