Forums

[resolved] Getting blank page after trying to comment (5 posts)

  1. stew278
    Member
    Posted 2 years ago #

    Yesterday I noticed for the first time that commenting went down. After trying to comment (logged in as administrator), I was taken to a blank wp-comments-post.php page. There was no apparent reason for this; I hadn't been in to any pages, messing with any code, that affected commenting.

    I first started trying to debug this by turning off all plugins; no luck. I then upgraded to 2.8.1; no luck. I've searched the support forums looking for other people's similar problems and tried their suggestions; no luck. There seems to be quite a few people that have had this problem, but no clear solution. (if there is, someone needs to make a sticky post for this)

    I would greatly appreciate someone's help on this matter. My website is http://family.stew278.com and I'll be monitoring this topic, if someone needs me to post further information.

    Thanks.

  2. stew278
    Member
    Posted 2 years ago #

    Okay; one thing I was hesitant to do because I wasn't sure if I'd lose formatting or not, was to change back to the default theme. In doing so, I've discovered that commenting DOES work when switching back to the default theme. So there's something wrong with the modified theme I'm using.

    Can someone point me in the right direction then? What are my first steps in trying to fix the blank wp-comments-post.php page? Where should I begin?

    Thank you to those who will respond!

  3. alexo05
    Member
    Posted 2 years 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>
  4. saurabhdidwania
    Member
    Posted 2 years ago #

  5. saurabhdidwania
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic