Hi,
I'm experiencing a wired problem. In some cases, forum posts done in a forum controlled by og_forum are not made accessible to the public, even though the group is public. Personally, I was not able to reproduce it by myself, but I have seen several posts on my side by other users who were not accessible to the public.
In all cases, for each node the following line was missing in the node_access table:
NID 0 og_public 1 0 0
I was able to fix this problem by manually inserting this line. I'm unsure about the group_id to use (2nd column). Should it be the group the node was pasted in or is it generally 0?
My gut feeling tells me that the issue is related to og_forum, but I might be wrong. Do you have any ideas what can cause this behaviour?
Thanks for your support!
Comments
Comment #1
advseb commentedI forgot to mention, I'm using the following additional components:
og - 6.1.3
drupal - 6.13
og_mandatory_group - 6.1.0-beta1
Comment #2
advseb commentedI am still experiencing this problem. Do you have any idea how I can debug this and where I have to look?
Comment #3
Anonymous (not verified) commentedDo you have a problem when you disable og_mandatory_group ? It could be that there is some conflict here.
Comment #4
advseb commentedHhm, it is a production site, so disabling it is not so easy. I think I would need to implement it something like mandatory group on my own so that every user gets assigned to the group.
But it could be that this is the cause, because I think I noticed this problem only with nodes published in a mandatory group.
Comment #5
advseb commentedI now also have this problem in a group, which is not mandatory. I'm pretty convinced that it is directly related to og forum. It might be that this problem happens in case the node is changed after publishing it. I remember that I set the "promote to front page" option for the posts before they went private.
I'm now evaluating if I can throw out og_forum and consider forum posts as general group posts. In that case I would need to add a forum for the group on my own, but it might work. Has anybody done something like that?
Comment #6
advseb commentedOk, finally, I think, I found the cause of the problem. The posts get published according to the visibility of their belonging groups. Now an administrator edited the posts to "promote them to the front page". The edit form of the node also contains a collapsed section called "group". In this group section, there is a checkbox "Public" to make a post public. If the node is a forum post managed by og_forum, this checkbox is inactive (readonly). It can be changed again with a single click in the list of groups. If this is not done, the box remains unset and so the post goes private while saving the node.
Probably, og_forum is doing some hook alter actions on the node editing form. Here, the handling of the "Public" checkbox (edit-og-public) is broken, I guess, because:
- it is not editable
- it has the wrong initial value
I hope this nails down the problem a little bit.
Comment #7
vegantriathlete