Title: &#8220;wp-comments-post.php&#8221; gets a  blank screen
Last modified: August 19, 2016

---

# “wp-comments-post.php” gets a blank screen

 *  Resolved [lucylovesbiz](https://wordpress.org/support/users/lucylovesbiz/)
 * (@lucylovesbiz)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/wp-comments-postphp-gets-a-blank-screen/)
 * This is regarding our client who we’ve just set up on a new 2.7 WordPress, and
   who has just had his first visitors comment, and all they see is a blank screen
   when they click ‘submit’.
 * I’ve checked his comment.php, and the code looks identical to those on our other
   blogs. I’ve replaced it with the one from the default theme. I’ve replaced the“
   wp-comments-post.php” too, but no help. I can leave a comment if I’m logged in
   as administrator. Also, if I uncheck the option in ‘Settings’ to email the administrator
   whenever a post is left, then it works fine. Unfortunately, that’s not a satisfactory
   situation.
 * I’ve spent the last hour and a half searching forums and WordPress Forums for
   help, but I only see snippets of this problem, and then no-one seems to get it
   solved. Is this just this one issue, or is there a known fix?
 * Thanks, Andy & Lucy

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

 *  Thread Starter [lucylovesbiz](https://wordpress.org/support/users/lucylovesbiz/)
 * (@lucylovesbiz)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/wp-comments-postphp-gets-a-blank-screen/#post-973108)
 * I guess I’ll reply to my own post then.
 * Re-installed 2.7
 * Worked.
 * Thanks for everybody’s help.
 * xxx
 *  [IntownWebPros](https://wordpress.org/support/users/kjcc/)
 * (@kjcc)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/wp-comments-postphp-gets-a-blank-screen/#post-973294)
 * I’m having the same problem. I’ve spent the entire day searching for an answer.
   Everywhere I looked said it’s an Askimet issue but I have not installed Askimet.
 * I have figured out that whenever I try to change comment.php, I get the blank
   screen issue. It’s not an issue with wp-comments-post.php or comment.php. I can’t
   post the URL here. I will post the code that I changed tomorrow.
 *  [IntownWebPros](https://wordpress.org/support/users/kjcc/)
 * (@kjcc)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/wp-comments-postphp-gets-a-blank-screen/#post-973295)
 * OK. Here is my code change:
 * I added comment_author_year in two places:
 * `$result = $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->comments
    (comment_post_ID,
   comment_author, comment_author_email, comment_author_url, comment_author_IP, 
   comment_date, comment_date_gmt, comment_content, comment_approved, comment_agent,
   comment_type, comment_parent, user_id, comment_author_year) VALUES (%d, %s, %
   s, %s, %s, %s, %s, %s, %s, %s, %s, %d, %d)", $comment_post_ID, $comment_author,
   $comment_author_email, $comment_author_url, $comment_author_IP, $comment_date,
   $comment_date_gmt, $comment_content, $comment_approved, $comment_agent, $comment_type,
   $comment_parent, $user_id, $comment_author_year) );
 * Now I get the blank screen. I also changed wp-comments-post.php and comments.
   php but they did not cause the error. I have tried swapping out fresh versions
   of all three files and the only time I get the issue is when I change comment.
   php.
 * Any ideas?

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

The topic ‘“wp-comments-post.php” gets a blank screen’ is closed to new replies.

## Tags

 * [blank-screen](https://wordpress.org/support/topic-tag/blank-screen/)
 * [wp-comments-post.php](https://wordpress.org/support/topic-tag/wp-comments-post-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [IntownWebPros](https://wordpress.org/support/users/kjcc/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/wp-comments-postphp-gets-a-blank-screen/#post-973295)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
