Title: wp-comments-post.php problem
Last modified: August 19, 2016

---

# wp-comments-post.php problem

 *  [truantrebel](https://wordpress.org/support/users/truantrebel/)
 * (@truantrebel)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/wp-comments-postphp-problem/)
 * I’m having problems with posting comments. Nobody can post comments, because 
   after writing them the wp-comments-post.php page ends up being white & a dead
   end. No code, no error.
 * Help! This worked until I changed my layout!

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/wp-comments-postphp-problem/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/wp-comments-postphp-problem/page/2/?output_format=md)

 *  [bamapachyderm](https://wordpress.org/support/users/bamapachyderm/)
 * (@bamapachyderm)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/wp-comments-postphp-problem/#post-678341)
 * Bump
 * I’m having the same problem, but it’s not the theme.
 * Truantrebel, have you tried commenting with the WP default theme? I did, and 
   still have the problem. I just get stuck at wp-comments-post.php and the redirect
   to the post doesn’t happen. No comment is posted either.
 * I have looked at what seems like everything on teh internets to figure this one
   out.
 * I don’t even remember why I thought it had to do with the 2.3 canonical URL change,
   but I played around with that to no avail as well (that isn’t a problem; I did
   a backup before I edited the htaccess file so I wouldn’t compound the problem).
 * Help please, anyone?
 *  [bamapachyderm](https://wordpress.org/support/users/bamapachyderm/)
 * (@bamapachyderm)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/wp-comments-postphp-problem/#post-678342)
 * I tried a comment with IE, and found it’s a 405 error.
    Not that it’s solved 
   anything, but it’s another clue, I guess.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [18 years, 3 months ago](https://wordpress.org/support/topic/wp-comments-postphp-problem/#post-678343)
 * Very few things generate a 405 error. WordPress is not one of them.
 * Are you running mod_security on your server?
 *  [bamapachyderm](https://wordpress.org/support/users/bamapachyderm/)
 * (@bamapachyderm)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/wp-comments-postphp-problem/#post-678344)
 * I couldn’t tell you for sure. What’s that look like?
    I do have certain files
   and the directories protected in .htaccess, if that means anything.
 *  [bamapachyderm](https://wordpress.org/support/users/bamapachyderm/)
 * (@bamapachyderm)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/wp-comments-postphp-problem/#post-678345)
 * Actually, my issue is probably because I have two blogs with different URLs on
   my server, but the main blog works fine with a nearly identical .htaccess file(
   domains changed, of course). I don’t wanna hijack truantrebel’s thread, though–
   I’m sort of hoping something will give me an aha! moment, ’cause I’m pretty stumped.
 *  [bamapachyderm](https://wordpress.org/support/users/bamapachyderm/)
 * (@bamapachyderm)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/wp-comments-postphp-problem/#post-678346)
 * It works now! Thanks Otto!
 * What I did (for anyone else with the problem, if you have a similar setup)–
    
   I just had to change my WordPress URL in Admin/Options. I had it set to [http://mainblogurl.com/addondomainurl.com/](http://mainblogurl.com/addondomainurl.com/)
   and I changed it to [http://addondomainurl.com](http://addondomainurl.com) (just
   as the blog address URL was).
 * Thanks again!
 *  [Honhaar](https://wordpress.org/support/users/honhaar/)
 * (@honhaar)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/wp-comments-postphp-problem/#post-678364)
 * We are having a similar problem; also we cannot login into our accounts (unless
   it is already cached). We are yet to identify the cause! So do not know how to
   solve the problem. We have tried the suggestion, but it didn’t work.
 *  [Mladjo](https://wordpress.org/support/users/leonl/)
 * (@leonl)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/wp-comments-postphp-problem/#post-678379)
 * My problem is like this: When I’m loged and don’t write anything I have The website
   cannot display the page HTTP 500. Wp is 2.5.1 and page is /wp-comments-post.php.
   No idea.
 *  [victorfranco](https://wordpress.org/support/users/victorfranco/)
 * (@victorfranco)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/wp-comments-postphp-problem/#post-678382)
 * I experienced the same problem as leonl, but it happened when the visitor was
   not loged in. So nobody could comment on my blog. I don’t know what to do, but
   while i don’t find an answer I have to use Disqus.
 *  [tlw](https://wordpress.org/support/users/tlw/)
 * (@tlw)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/wp-comments-postphp-problem/#post-678383)
 * I’m having this problem as well. I thought it may be my old theme, but I’ve checked
   through everything and there isn’t anything wrong with it..
 * This is only happening to people that are not registered. They are usually on
   IE as well. I checked it in IE logged out and ended up with the 405 error as 
   well as a 500 error.
 * Unlike bama, my blog is already set up with the proper URL.
 * Also, if one that has the error refreshes the page and tries to comment again,
   it usually goes through.
 * I’m attempting to find a plugin that can correct the problem, but I haven’t found
   anything as of yet.
 *  [preetamp1984](https://wordpress.org/support/users/preetamp1984/)
 * (@preetamp1984)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wp-comments-postphp-problem/#post-678391)
 * i am also having same problem
    [my site 100india.com](http://www.100india.com)
 *  [techiesouls](https://wordpress.org/support/users/techiesouls/)
 * (@techiesouls)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wp-comments-postphp-problem/#post-678392)
 * i also had the same problem but one of my friend suggested me to update to new
   version but it also did’t worked i backed up my DB and fresh installed the latest
   version and my problem solved you can have a look here [TechieSouls](http://www.techiesouls.com)
 *  [janebush08](https://wordpress.org/support/users/janebush08/)
 * (@janebush08)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/wp-comments-postphp-problem/#post-678393)
 * i am also having same problem
 * [net framework development](http://www.e-zest.net/migrate-to-dotNET-framework3.htm)
 *  [trashmajor](https://wordpress.org/support/users/trashmajor/)
 * (@trashmajor)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/wp-comments-postphp-problem/#post-678394)
 * And the same. I have last version of wordpress (2.6.1) installed first time at
   the domain.
 *  [tearoom](https://wordpress.org/support/users/tearoom/)
 * (@tearoom)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/wp-comments-postphp-problem/#post-678395)
 * OK, just had this same issue, and fixed it with a bit of PHP, right under the
   comment
 *     ```
       $user = wp_get_current_user();
       if ( $user->ID ) {
       	$comment_author       = $wpdb->escape($user->display_name);
       	$comment_author_email = $wpdb->escape($user->user_email);
       	$comment_author_url   = $wpdb->escape($user->user_url);
       	if ( current_user_can('unfiltered_html') ) {
       		if ( wp_create_nonce('unfiltered-html-comment_' . $comment_post_ID) != $_POST['_wp_unfiltered_html_comment'] ) {
       			kses_remove_filters(); // start with a clean slate
       			kses_init_filters(); // set up the filters
       		}
       	}
       } else {
       	if ( get_option('comment_registration') )
       		wp_die( __('Sorry, you must be logged in to post a comment.') );
       }
       ```
   
 * I changed this to:
 *     ```
       $user = wp_get_current_user();
       if ( $user->ID ) {
       	$comment_author       = $wpdb->escape($user->display_name);
       	$comment_author_email = $wpdb->escape($user->user_email);
       	$comment_author_url   = $wpdb->escape($user->user_url);
       	if ( current_user_can('unfiltered_html') ) {
       		if ( wp_create_nonce('unfiltered-html-comment_' . $comment_post_ID) != $_POST['_wp_unfiltered_html_comment'] ) {
       			kses_remove_filters(); // start with a clean slate
       			kses_init_filters(); // set up the filters
       		}
       	}
       } else {
       <strong>	echo("Oops, looks like you didn't <a href=\"http://www.YOURDOMAINNAME.com/wp-login.php\">register (or sign in)</a>!");</strong>
   
       	if ( get_option('comment_registration') )
       		wp_die( __('Sorry, you must be logged in to post a comment.') );
       }
       ```
   
 * This assumes wp is under the main directory, if you need to put a sub directory,
   change the url **[http://www.YOURDOMAINNAME.com/wp-login.php](http://www.YOURDOMAINNAME.com/wp-login.php)**
   to **[http://www.YOURDOMAINNAME.com/YOUR_SUB-DIRECTORY/wp-login.php](http://www.YOURDOMAINNAME.com/YOUR_SUB-DIRECTORY/wp-login.php)**
 * This might cause some other unforseen issue, but so far I haven’t come across
   one (please let me know if you do!)

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/wp-comments-postphp-problem/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/wp-comments-postphp-problem/page/2/?output_format=md)

The topic ‘wp-comments-post.php problem’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 22 replies
 * 16 participants
 * Last reply from: [skratman](https://wordpress.org/support/users/skratman/)
 * Last activity: [17 years, 6 months ago](https://wordpress.org/support/topic/wp-comments-postphp-problem/page/2/#post-678412)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
