With any user but the admin, I can't post a comment--when attempting to, I get the "This discussion is closed; You can't post new comments" error.
Could someone please point me to potential causes? Permissions for comments and profiles are open, and comments are enabled in the content type. It works fine for the admin, but even the profile's owner can't post a comment (although the comment form does show up, the error occurs after clicking Save). It's driving me a bit crazy...what setting (and where) is causing this?
Thanks!
-Daniel
Comments
Comment #1
vyasamit2007 commentedIf you are creating a node programmatically then you have to add $node->comment = 2; otherwise the programmatically created node will have comment disabled by default.
If your content type has comments enabled "Read/Write" in your content type settings and you are creating a node programmatically then also you have to give $node->comment = # [1 -> Read Only, 2 -> Read/Write].
Comment #2
swatiphp commentedI am just using drupal_get_form to display the comment form but it is giving me error as - This discussion is closed: you can't post new comments.
though it can post comment when the node page is open with comment form.
Comment #3
swatiphp commentedthe form name was wrong
the issue is resolved
Comment #4
funkDoc commentedThanks for the tip, this solved my issue.
Comment #5
binwithu commentedwhich form name is wrong .what you are talking about ..can u explain please @swatiphp