Support » How-To and Troubleshooting » Comments not working, goes to blank page.

Comments not working, goes to blank page.

  • This is a strange problem and just started occuring not long ago for no apparent reason, my comments used to work but one day just stopped!

    When anyone tries to submit a comment in either FF or IE it just goes to a blank wp-comments.php page

    I have no plugins installed and does not work in the default theme either. I upgraded to 1.5.1 and this did not fix it either.

    The address of my wp install is http://randomo.ocel.co.uk if anyone wants to test it out for themselves.

    I appreciate any help anyone has to offer.

Viewing 15 replies - 1 through 15 (of 40 total)
  • To those who try commenting the blog and get a blank page:


    Please state any or all relevant information to help the dev team track where this bug comes from, including OS, browser, privacy settings, connection type, and anything you think could be causing it

    The problem as I see it is this code in wp-post-comments.php:

    $location = (empty($_POST[‘redirect_to’])) ? $_SERVER[“HTTP_REFERER”] : $_POST[‘redirect_to’];

    Which means that if your browser does not send referrer headers, then posting a comment will leave you with a blank page.

    I have tested and confirmed this in version 1.5.12


    I recently gave a look to other forums related, but this problem seems not to have a unique, tested and widely confirmed solution yet. Why?

    I have this same problem… 🙁

    All my users email me complaining!

    I had the same problem. In the end I had to reset my permalinks back the default. I had changed them ages ago to /index.php/%year%/%postname%/

    This bug came out of nowhere though. I haven’t changed anything in a while and suddenly the comments stopped working.



    Same here. My problems started after upgrading to 1.5.2 a couple days ago.



    I’m actually getting the blank page after making an admin post, and after deleting posts.

    I found it was a 2 fold problem. First, comments were not entering my database and I was getting a blank page. To have comments be entered I had to make my URI “www.shivian.com/blog” not just “shivian.com/blog” – this made comments appear in my database, however I still got a blank page. I found that this was because of the HTTP referer issue, hence I created the following simple hack which works for me, hopefully it will work for you. If it has a big hole it in or somthing (not a PHP guru, just enough knowledge to know how to modify stuff) please let me know. Thanks and goodluck to you all!

    // origional
    // $location = (empty($_POST[‘redirect_to’])) ? $_SERVER[“HTTP_REFERER”] : $_POST[‘redirect_to’];

    // shivian.com hack
    $location = $_SERVER[‘HTTP_REFERER’];

    shivian – i take it i should place that in my wp-comments-post.php page? don’t know if i am experiencing the same issue – please have a look at http://botwblog.org

    upon commenting, you are redirected to the index, with the data from the comments in the address field…

    The problem I am having is almost the same – that is, my readers can comment, but after they press the ‘submit’-button, they are redirected to a blank page. Not actually as irritating as not being able to comment, but still, a few users has complained.

    I have the same problem and it just started happening. I looked and found that it is dying on the call to wp_new_comment() in wp-comments-post.php. But, I can’t find where this function is defined. I am using 1.5.2 and the URL is http://www.roythepug.com if anyone wants to see.

    Moderator James Huff


    Support Team Rep.

    Do the comments work properly if all of your plugins are disabled?

    The comments worked with the plugins disabled. I wonder why this would start happening all of a sudden?

    Moderator James Huff


    Support Team Rep.

    Disable the plugins one-by-one until you find the cause of the issue.

    I have de same problem (comments go to blank page). I use wordpress 1.5.2, php 5.0.4 and mysql 4.0.26 at http://www.hiades.net. I have disabled all plugins, I have the same WordPress address and Blog address (URI) (www.hiades.net), I made some tests changing the same lines that shivian but the comments don’t run. Anybody can help me?


Viewing 15 replies - 1 through 15 (of 40 total)
  • The topic ‘Comments not working, goes to blank page.’ is closed to new replies.