• Resolved lucylovesbiz

    (@lucylovesbiz)


    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

    (@lucylovesbiz)

    I guess I’ll reply to my own post then.

    Re-installed 2.7

    Worked.

    Thanks for everybody’s help.

    xxx

    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.

    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.