I have created a grouphomepage type for my og groups pages. I set the default access for comments to read/write. when i create a grouphomepage, it sets the comments to disabled. I can't create comments. I try to set the comments to read/write for a specific grouphomepage, and it says it submitted fine, (no errors) but i still don't get an add comment link (not even as administrator), and if i go check the settings for the grouphomepage, it has been changed back to disabled. seems to me like it is not actually being committed to the database or something like that.

I am comfortable enough digging through code, but this is just over my head. I would really appreciate a fix similar to the ones for 4.6 represented here: http://drupal.org/node/29337

Thanks in advance for the help.

Brett Evanson

Comments

brettev’s picture

FreeBSD (yahoo web hosting)
php 4.3.11
drupal is in the root

drumm’s picture

Status: Active » Postponed (maintainer needs more info)

What is a grouphomepage? Is it a content type? Are you using Organic Groups or some other contributed module?

ianj’s picture

I have the same issue, but I believe this is the "expected" behavior for OG (Organic Groups). I don't believe this is a bug in Drupal core.

Searching the code in og.module I discovered that comments are being turned off there. So, it doesn't matter what setting you select in the admin interface; it's always off for group node types.

One way to hack it back on seems to be to update the module code as follows:

Replace the following lines:
$node->comment = COMMENT_NODE_DISABLED;

in lines:
1213
1232
1298

in og.module

with:
$node->comment = COMMENT_NODE_READ_WRITE;

Done this and things seem to be working, but haven't done extensive testing yet.
Line numbers above were for the 5.x-3.1 version of OG module.

johnhanley’s picture

It blows me away that the decision to disable comments for group nodes has never been reversed. I don't understand the comment at line 1227 in og.module of 5.x-7.3, "comments are not allowed on group nodes, since we don't have any nice way to present them". When making the above three constant changes (albeit with different line numbers for 5.x-7.3) comments display underneath the node post just like they do for any other content type. This should be a configurable option instead of hard-coded.

dpearcefl’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Considering the lack of activity on this issue and that Drupal v5 is no longer supported by for fixes or patches, I am going to close this ticket.