• I’ve searched through this forum and seen many topics involving blank pages when someone tries to submit a comment, but non of them seem to hit -my- problem. I’ve tried changing back to the default skin, changing the permalink settings and then changing them back, my browser is using http_referrer, etc. There are soo many of these type of error reports though, it’s possible I missed one.

    My blog is pretty stock. Only one plugin (database backup on demand) is enabled. No caching, no antispam, or anything. Apache2, php 5.1.6 on Ubuntu Edgy. The site works just fine for posting, remote posting, user registration etc… but I can’t post any comments.

    Posting a comment results in a blank page with the url saying wp-comments-post.php. When I say blank, I mean -blank-, not even <HTML> or <BODY> tags. And the comment does not get into the database (checked by looking at the table manually). Doing some debug by printf shows that the comment_ID is 0, and the $status returned from the database query it also 0 (which makes sense as the comment never made it to the database.). My apache logs, and a quick phpinfo() stuck at the top of the page, show that I got there via a GET request, not a POST one. Since the $status returned from the database query is 0, this leads to an early exit from the wp-comments-post.php script, which is why the page is blank.

    This is most likely a configuration error, but I don’t know where else to look. Looking at comments.php, It looks like something calls ‘do_action(‘comment_form’ …)’.. where does that go? I’m guessing that the problem lies there since the comment seems to need to be in the database before wp-comments-post.php script is run.

    Is there any extra logging I can turn on to help figure out what’s going on?

    blog is at johnsjournal dot no-ip dot org if you’re interested, but be kind, it’s a slow link.

    Thanks for any guidance…
    john.c

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter pianoman8

    (@pianoman8)

    I’m sorry, I forgot to add.. WordPress v2.0.4 (ubuntu build).

    Thread Starter pianoman8

    (@pianoman8)

    Nevermind, I fixed my problem. I noticed last night tha I could post comments from within my firewall, so i must be a DNS issue.

    I have a funky setup since my ISP blocks port 80, I’m running the blog on port 4444. But, I have a no-ip.org dns-redirect setup, so that http requests to ‘johnsjournal’ get redirected to my IP:4444 , which is then redirected through my firewall to the correct internal machine. I also have DNS aliases setup so that things ‘just work’ from within my firewall, so ‘johnsjournal’ resolves to the internal network address from inside my network. This must have been messing up wordpress somehow.

    To fix it, I simply changed this line in my comments.php file:

    <form action=”http://SITENAME/wp-comments-post.php&#8221; method=”post” id=”commentform”>

    to:

    <form action=”/wp-comments-post.php” method=”post” id=”commentform”>

    And that seems to have fixed the problem.

    hope this helps someone..

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

The topic ‘(another) blank page when posting comments problem.’ is closed to new replies.