Support » Fixing WordPress » wp-comments-post.php returns blank

  • It is currently impossible to leave a comment on my site. I am running wordpress 1.5 and the comment feature has been running fine until someone pointed out to me today that it ceased to function. The last comment was over two weeks ago, so I don’t know exactly when it ended working. I do know however that I didn’t do anything out of the ordinary in the past two weeks to my site.

    I checked out related posts on this forum and I still cannot seem to determine the issue.

    My site is at

    Thank you very much!

Viewing 10 replies - 1 through 10 (of 10 total)

    please fill as many information as you can so the devs can try to reproduce

    Same exact thing is happening to me. It seems to have started after upgrading to 1.5 a few days ago. Even old comments that show up in the Manage Comments don’t show up in the post. My blog is:

    I am also having the exact same issue…

    Moderator James Huff


    Volunteer Moderator 🚀

    First, please upgrade to WordPress v1.5.1.2. Then, try to post a comment. If it still doesn’t work, try disabling all active plugins.

    upgraded to…. and still its not working… I have come across many users with such an error

    I will post snippets of my comments.php where I think the errors might be

    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">

    <?php if ( $user_ID ) : ?>

    Logged in as /wp-admin/profile.php"><?php echo $user_identity; ?>. /wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>">Logout »

    <?php else : ?>

    <div class="commentforminfo">
    Information for comment users
    Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed.
    Get notified of replies to your comment by ticking the subscribe to comments checkbox.

    <label for="author"><small>Name <?php if ($req) _e('(required)'); ?></small></label>
    <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />

    <label for="email"><small>Mail (required) <?php if ($req) _e('but not published'); ?></small></label>
    <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />

    <label for="url"><small>Website</small></label>
    <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />

    <?php endif; ?>

    <div id="button">

    <input name="submit" type="submit" tabindex="5" value="<?php _e('Post it!'); ?>" />
    <span class="smaller">
    <input type="checkbox" name="subscribe" id="subscribe" value="subscribe">
    <label for="subscribe">Subscribe to comments </label>| <?php comments_rss_link(__('Comments RSS')); ?> |

    <?php if ( pings_open() ) : ?>

    " rel="trackback">

    <?php _e('TrackBack URI'); ?>

    <?php endif; ?>

    <?php do_action('comment_form', $post->ID); ?>


    Moderator James Huff


    Volunteer Moderator 🚀

    1. Do you have the same problem with your theme and all plugins disabled?

    2. Do you have the same problem with the Default Theme and all plugins active?

    3. Do you have the same problem with the Default Theme and all plugins disabled?

    1. Yes.

    2. No

    3. No

    As I mentioned above, its got to do something with the lines I posted above.. I messed up somewhere there but its almost identical to the default theme php calls.

    I have read that it could be a problem with some empty spaces but I dont know where to look for these empty spaces

    If the theme you are using doesn’t have a single.php file; try creating one and see if that makes it happy.

    single.php is not necessary.. I think its got to do with the lines I posted above.. somewhere I made a boo boo.. in such situations… only one thing to do… sit,cry and scream for podzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

    yes, I finally figured it out… this was the line that somehow messed up everything..

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

    once I fixed this error…everything fell into place….

    Mine is a completely custom theme… and hence the chances of errors are huggggeeeeee……anyways all working well now.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘wp-comments-post.php returns blank’ is closed to new replies.