Title: posting comments issue
Last modified: August 18, 2016

---

# posting comments issue

 *  [sketkar](https://wordpress.org/support/users/sketkar/)
 * (@sketkar)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/posting-comments-issue/)
 * For some reason only registered user can leave comments on my site. If the the
   $user_id doesn’t match (I don’t know what’s it comparing to), its won’t allow
   the comment “Error: please fill the required fields (name, email).” In my Options,
   I’m allowing anyone to post comments with Name and Email required but I don’t
   see a “registered” user only option to deselect.
 * [sketkar’s world](http://www.sketkar.com/wordpress)
 * Thanks

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

 *  [oriecat](https://wordpress.org/support/users/oriecat/)
 * (@oriecat)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/posting-comments-issue/#post-161829)
 * Check on the first Options page. Right in the middle it says Users must be registered
   and logged in to comment
 *  Thread Starter [sketkar](https://wordpress.org/support/users/sketkar/)
 * (@sketkar)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/posting-comments-issue/#post-161830)
 * aaahhh….thanks, I can’t believe I missed it.
 *  Thread Starter [sketkar](https://wordpress.org/support/users/sketkar/)
 * (@sketkar)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/posting-comments-issue/#post-161831)
 * already unselected, that’s not it. I wonder if wp-comments.php isn’t validating
   the Names and Email correctly or something.
 *  Thread Starter [sketkar](https://wordpress.org/support/users/sketkar/)
 * (@sketkar)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/posting-comments-issue/#post-161847)
 * Found the problem, I think. In the comments.php, towards the end of the comments
   form, there is the line
 * `<?php do_action('comment_form', $post->ID); ?>`
 * I commented it out and now it works. At least it did on my test site.
 *  Thread Starter [sketkar](https://wordpress.org/support/users/sketkar/)
 * (@sketkar)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/posting-comments-issue/#post-161854)
 * Hrmm..nope that wasn’t it. Still can’t post comments, unless It’s my name or 
   I’m logged in.
 *  Thread Starter [sketkar](https://wordpress.org/support/users/sketkar/)
 * (@sketkar)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/posting-comments-issue/#post-161855)
 * Well, that only part of it. I notice that there is no `$user_ID`, it’s supposed
   to be `$user_id`. So I fixed that in the `comments.php` and `wp-comments-post.
   php` and it seems to work. I’ll be deleting my cache and cookies and trying again…
   hahaha.

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

The topic ‘posting comments issue’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [sketkar](https://wordpress.org/support/users/sketkar/)
 * Last activity: [21 years, 3 months ago](https://wordpress.org/support/topic/posting-comments-issue/#post-161855)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
