• sketkar

    (@sketkar)


    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

    Thanks

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

    (@oriecat)

    Check on the first Options page. Right in the middle it says Users must be registered and logged in to comment

    Thread Starter sketkar

    (@sketkar)

    aaahhh….thanks, I can’t believe I missed it.

    Thread Starter sketkar

    (@sketkar)

    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

    (@sketkar)

    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

    (@sketkar)

    Hrmm..nope that wasn’t it. Still can’t post comments, unless It’s my name or I’m logged in.

    Thread Starter sketkar

    (@sketkar)

    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.