Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
forum.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Apr 2006 at 04:19 UTC
Updated:
25 Sep 2006 at 20:15 UTC
The forums module doesn't display posts. Posting a topic to a forum will add a node, but won't show up in forums. When I browse to the top level of the forums, I get this message:
warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/machine/public_html/blog/modules/forum.module on line 705.
Each level I browse to in the forums throws an error/warning, references all instances of this line in forum.module:
if ($tid && !in_array($tid, variable_get('forum_containers', array()))) {
Comments
Comment #1
Uwe Hermann commentedI think this worked for me with yesterday's HEAD version. Which versions exactly did you use?
Comment #2
mrmachine commentedI just updated to HEAD and still have the same problem.
Comment #3
decafdennis commentedFrom what you say in http://drupal.org/node/50889 your problem is related to taxonomy. It might be that somehow both the image and forum modules are using the same vocabulary.
Comment #4
mrmachine commentedAfter updating to latest HEAD, i get this error when trying to add a new forum container:
Fatal error: [] operator not supported for strings in /home/machine/public_html/blog/modules/forum.module on line 531The container gets added, but i still get the problems as mentioned above.
Comment #5
decafdennis commentedI'm certain one or more of forum's variables are corrupted. First try a clean Drupal installation with the same modules enabled and try to reproduce.
Comment #6
mrmachine commentedI found out the problem - a while ago I changed the name of the Topic vocabulary to Blog ... I just changed it back, and everything is working fine.
So, changing - or deleting - the Topic vocabulary is not going to work when using the Forums or Image modules (and maybe others) ... should this be the case?
Comment #7
decafdennis commentedI wouldn't understand why just renaming the vocabulary solved your problem. As far as I know none of the modules search for the vocabulary by its name.
It might have something to do with the 'module' field in the database getting reset when you manually edit a vocabulary (like renaming it). This was fixed two days ago. (http://drupal.org/node/60265)
Comment #8
chx commentedComment #9
(not verified) commented