Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter tinkleondabeach

    (@tinkleondabeach)

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

    Thread Starter tinkleondabeach

    (@tinkleondabeach)

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

    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….

    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>

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

    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!

    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; ?>” />

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Comments don’t work; blank page’ is closed to new replies.