Closed (fixed)
Project:
Forum Access
Version:
6.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2009 at 13:18 UTC
Updated:
18 Feb 2010 at 13:52 UTC
Jump to comment: Most recent file
Comments
Comment #1
salvisIt's not??? The forum_nodeapi() function in the core forum.module is pretty clear about what goes into the {forum} table:
Also, there's no other core module besides forum.module that mentions
$node->tid.Or are you saying that forum_access_access() is called with a $tid parameter that did not come from $node->tid? What caller would do that?
Comment #2
dme69 commentedI don't know where is the problem. I jus saw this in this function.
Here is my case :
1 forum node with 2 term id :
- tid = 15 => this is a taxonomy term for tags
- tid = 64 => this is the forum term
Forum access is testing the rights for tid=15 not for tid=64. That's why it is not working for me
Dominique.
Comment #3
salvisPlease give me the file name / line number, paste the line and name the variable where you see 15 instead of 64. I'm still not following you.
Comment #4
dme69 commentedHello,
The result :
1. When showing the forum post (nid = 732)
My echo log qive this result : "TID = 16TID = 68"
2. When trying to add a comment to this forum post
My echo log give this result = "TID = 16TID = 16"
And I'm having a message that tell me I can't access this page
In attachment a screenshot of my database table {term_node} for this node.
The forum TID is 68. The others are tags.
Comment #5
salvisOk, now please add
below your
echo.This will generate a lot of output. You'll see "0 =>", "1 =>", etc., and I'm interested in the file path and line number reported after each of these. 0/1/2/3 should probably be enough.
EDIT: Should have mentioned that I created a vocabulary Color, enabled it for the Forum topic type, assigned Blue to a node, inserted your debug code, and never saw anything but the forum tid listed.
Comment #6
dme69 commentedSorry for the time to answer ...
The problem only appears when the tid of the forum is greter thant the tid of the tag
Comment #7
salvisYou hit a bug in core: #422218: $node->tid can get the wrong tid if a forum content type has additional vocabularies. Thanks for reporting it!
Please review the core issue.
I'm leaving this open as a signpost until the bug is fixed in core and a new version released.
Comment #8
dme69 commentedHello Salvis,
It seems to be ok for me now. I need some more tests but it seems ok :-)
Thanks for your help.
Dominique.
Comment #9
salvisAs long as core is not fixed, you're not safe if you use other vocabularies along with the forum vocabulary.
Please go to the core thread and at least show your interest in getting this core bug fixed!
Comment #10
salvisBETA4 includes a work-around for this core bug. #422218: $node->tid can get the wrong tid if a forum content type has additional vocabularies still ought to be fixed, of course, but Forum Access should now work as expected either way.
Comment #12
salvisI'm hitting this issue again while adding support for Nodecomment to Forum Access: when inserting a nodecomment node, FA needs to check whether its OP is a forum node. Again, FA cannot rely on $node->tid being the forum tid.