• Resolved stew278

    (@stew278)


    Yesterday I noticed for the first time that commenting went down. After trying to comment (logged in as administrator), I was taken to a blank wp-comments-post.php page. There was no apparent reason for this; I hadn’t been in to any pages, messing with any code, that affected commenting.

    I first started trying to debug this by turning off all plugins; no luck. I then upgraded to 2.8.1; no luck. I’ve searched the support forums looking for other people’s similar problems and tried their suggestions; no luck. There seems to be quite a few people that have had this problem, but no clear solution. (if there is, someone needs to make a sticky post for this)

    The one thing that did work is that I switched to the Default theme, and comments were working again. So there’s something wrong with the theme that I’m using/modifying, but I don’t know where to begin looking for the mistake that is there.

    I would greatly appreciate someone’s help on this matter. My website is https://tinyurl.com/mod6gw and I’ll be monitoring this topic, if someone needs me to post further information.

    Thanks.

Viewing 6 replies - 16 through 21 (of 21 total)
  • Hi Vlatko,

    I was having the same issue and deactivating Akismet worked. However any reason why Akismet would cause this issue?

    I’m using WP 2.7 and custom built theme.

    Thanks
    Mukesh

    Deactivate Akismet and the problem solved.
    Modify comment_agent does not work for me.

    Hey guys,

    For those of you who are still stuck in this $#$&?#*&? problem (as I was a few minutes ago), just take care of the last part your form which HAS TO BE so…

    <!-- [1] "End" your form with the submit button -->
    <input type="submit" name="submit" id="submit" value="submit" />
    <!-- [2] Put this line to activate redirection after posting -->
    <input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']); ?>" />
    <!-- [3] Put this template tag to fastly add comment id -->
    <?php comment_id_fields(); ?>
    <!-- [4] And then call the function to display correctly wp-comments-post.php without any 500 error -->
    <?php do_action('comment_form', $post->ID); ?>
    <!-- [5] Then, you can close your form... -->
    </form>

    Steps 2 and 3 can be inverted but they’re the only ones.
    Hope this will help people like me ??

    Vincent

    I ended up only using part of this – I posted this portion just above the form tag and now all is well.

    Thanks Vincent! I can only hope that will be fixed in later releases…

    <input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']); ?>" />

    I just found the solution. An easy one:

    https://npxp.com/solution-for-wordpress-comment-blank-page

    Replace the file with a new one !

    Unfortunately that doesn’t seem to work KamaIH, it was one of the first things that I attempted in troubleshooting.

    For some reason the guy in the link you provided didn’t have any code in his file (which is kinda weird!) to begin with.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘wp-comments-post.php = Blank page : Broken comment ability’ is closed to new replies.