wordpress Blank page after posting a comment (wp-comment-post.php)
- If you try to back up your database, you’ll be thrown with this error message – wp_comments is marked as crashed and should be repaired when using LOCK TABLES
- Recent comments widget appears blank.
- Top commenter widget appears blank.
- Comment posted will not be written into DB, therefore will not be shown.
- Comments section in WP Admin appears to have zero records.
After searching the Internet high and low in hoping to find similar cases to help me identify and fix the problem, I end up with nothing. I found this solution finally on hongkiat website. Thanx a ton to him. Below is the cause and solution to the problem. Plz Leave Comment If you Like the post…
The fix / Solution
A list of your databases will appear. Click the one that is your WordPress database.
2. Click ‘databases’

3. Tick the check box against the table wp_comments
4. Scroll all the way down and look for ‘With selected‘ drop-down box. Select Repair table and things should be alright.

Now you have repaired your table and your comment should work fine now.
Plz do Leave Comment If your problem is solved… If not follow instructions below…
In case your storage engine does not support repair table then go through following steps:
Before going further ahead, Please take a backup of your database. Beacause you may loose all the comments posted till now on your blog.
After following first two steps from above procedure,
3. Click on SQL on top of Table List
4. You will get the window similar to this6
5. On the text window type following query and click on ‘go’ button.
DROP TABLE IF EXISTS `wp_comments`; CREATE TABLE `wp_comments` ( `comment_ID` bigint(20) unsigned NOT NULL auto_increment, `comment_post_ID` int(11) NOT NULL default '0', `comment_author` tinytext NOT NULL, `comment_author_email` varchar(100) NOT NULL default '', `comment_author_url` varchar(200) NOT NULL default '', `comment_author_IP` varchar(100) NOT NULL default '', `comment_date` datetime NOT NULL default '0000-00-00 00:00:00', `comment_date_gmt` datetime NOT NULL default '0000-00-00 00:00:00', `comment_content` text NOT NULL, `comment_karma` int(11) NOT NULL default '0', `comment_approved` varchar(20) NOT NULL default '1', `comment_agent` varchar(255) NOT NULL default '', `comment_type` varchar(20) NOT NULL default '', `comment_parent` bigint(20) NOT NULL default '0', `user_id` bigint(20) NOT NULL default '0', PRIMARY KEY (`comment_ID`), KEY `comment_approved` (`comment_approved`), KEY `comment_post_ID` (`comment_post_ID`), KEY `comment_approved_date_gmt` (`comment_approved`,`comment_date_gmt`), KEY `comment_date_gmt` (`comment_date_gmt`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
6. You will receive message that the query was successful.
Your comments should be working fine now.
If this does not work for you, try this: (thanks to Matthew Ogston for this)
When publishing a new comment, users receives a 404. Problem is that comments DB table for some reason stops auto-incrementing itself.
Just change the ‘comment_ID’ id column to Auto Increment and it should work okay. New comments will be saving correctly after this.
If nothing works for you, then backup everything and then do a fresh install for your wordpress. This should solve all your problems.
Plz Leave Comment If you Like the post…
46 Comments to “wordpress Blank page after posting a comment (wp-comment-post.php)”
daily email newsletter
Recent Posts
- 5 Useful Tools to Recover Lost Data
- Angry Bird for all – on Multiple Platforms
- Google Docs:Excellent Tool Managing Documents Online
- Ways to open .Psd File without installing Photoshop .
- How To Invite Facebook friend To Google Plus,with Simple Steps .







Hi Mayur,
I think it has to do something with one of your plugins. Are you using any plugin to modify commenting?
try disabling plugins one by one and then commenting. if any plugin is creating problem, you will come to know. Let me know if this works?
Hello Saurabh, i am getting a weird cannot modify headers error when commenting, i just realized that and i am worried its not getting fixed. I am kind of tired searching on internet, cannot find any solution. Do you have any idea what is going wrong?
It gives database error and then simply cannot modify headers error…any solution? You can try commenting on my blog to check it…
Thank you, thank you, thank you!
Had been looking for ages to find a solution to my problem, as soon as I read the first line of your article I realised the database hadn’t ported properly from one server to another. Sure enough, no wp_comments of wp_commentmeta tables, I queried the creates that you posted and working perfectly again.
Thank you very much for this,
Dan
Hi, I’ve tried this solution but didn’t worked for me. So, I’ve deactivated every plugin and posted a comment… no blank page! Then I’ve been activating one by one and for some reason the “Gravatar Signup Encouragement” plugin was the reason of the blank page. Hope this can help someone.
Cheers.
This is a nice post ! continue the good work!