Hi there,

I have a problem with my forum module. I have a forum consisting of 4 containers with a number of forums each.
When you create a new topic ('Post new forum topic.') you always have to specify in which forum this topic should appear, by selecting a forum from the drop down menu. When I create a new topic on the top level (where I see all containers and forums) the drop down menu offers me 14 different forums to choose from.
When I now descend to one of the containers or forum to click there on 'Post new forum topic' the drop down menu is empty, I cannot assign my topic to any forum. When I try to post my topic nevertheless, I get 'An illegal choice has been detected. Please contact the site administrator.'.
This happens when I am logged in as a normal user. When I am logged in as administrator it also works on the top level, but when i descend to one of the containers I only can select one single forum, all the others (which are there when I create content on the top level) are not present.

any ideas?

thanks a lot

martin

Comments

lucas20’s picture

I am having a similar problem where when users select to post a new forum topic they have to reselect the forum to place it in, but the forums listed in the drop down do not include the forum where they are trying to post.

I downloaded the 5.2 development version and it works fine now.

vm’s picture

5.x-dev is the 5.3 dev version... can be found here: http://drupal.org/drupal-5.x-dev
_____________________________________________________________________________________________
give a person a fish and you feed them for a day but ... teach a person to fish and you feed them for a lifetime

codeshark’s picture

I am having a problem with setting up forum topics. I am using 5.2, and when I click on the Post new forum topic link from any location I get a screen with the form to create a forum topic with subject and body fields, etc. However, I do not see any dropdown menu to choose which forum to list the forum topic in. There is a dropdown under menu settings to choose the parent item, but that is the only dropdown available on the page. Am i missing something? Where should the dropdown be located, and/or how do I list a forum topic in a specific forum. Please advise. Thanks.

vm’s picture

The drop down becomes enabled when there are more then one forum created.

I think I found where users are running into trouble with the core forum.module.

My question is this:

Are users who are having trouble, deleting the original forum vocabulary before creating their own?
or:
Are users editing the default vocabulary then adding on to it?

My guess is the problem is related to the former. I tend to edit the default forum vocabulary then add from there and have never run into this type of problem. It would be nice to narrow it down so that it can be properly explained to the devlopers of drupal.
___________________________________________________________________________________________________
The search tool on Drupal.org really does work. This message has been brought to you by the letter X. Thanks for watching! : )

eclauset’s picture

It seems like a lot of people are having a similar problem here. What is the default vocabulary? When I initially installed it, I don't remember there being any forums set up by default.

I currently have two forums in two containers, and I am seeing the same behavior described above.

I've also had a similar problem recently with the weblinks module: I enter a new weblink and it does not appear in the list in the selected category, but is visible under Admin : Content Management : Content.

vm’s picture

Off the top of my head I don't exactly remember what default forums are named. It's one forum and 1 term. If these weren't added when the forum.module was first enabled. There is a problem. The only time I"ve seen that happen is when a user is using the contrib module called category.module which can causes issues with teh forum module as well as any other modules that involve taxonomy. To see default forums, please install Drupal into a test domain, using a download here from Drupal.org. Do this without installing anything else. Then visit the forum taxonomy to inspect.
___________________________________________________________________________________________________
The search tool on Drupal.org really does work. This message has been brought to you by the letter X. Thanks for watching! : )

eclauset’s picture

I don't have category.module installed, and I don't really have the means to set up a test domain right now. Can anyone tell us what the default forum taxonomy is supposed to look like?

vm’s picture

a test site can be set up on yoru local machine, you can also inspect the forum.install file for the INSERT to get a glimpe of what querries are run when forum.module is enabled and installed. I am away from an installation at moment so I can't tell you specifically.

a quick search turned up this related thread in the Troubleshooting FAQ's section see: http://drupal.org/node/90214
___________________________________________________________________________________________________
The search tool on Drupal.org really does work. This message has been brought to you by the letter X. Thanks for watching! : )

vm’s picture

eclauset managed to recreate the default forum vocabulary with these steps: http://drupal.org/node/172628#comment-268264
___________________________________________________________________________________________________
The search tool on Drupal.org really does work. This message has been brought to you by the letter X. Thanks for watching! : )

sylvaticus’s picture

I have the same problem of inserting forum not showing the drop-down mennu of available forums.
Hovewer I don't have "Category" module nor I deleted the Forum vocabulary.

All the fixes I saw require to recreate in a way or the other the forum, meaning loss all my forums. Is there any way to associate the vocabulary ID to the forum module without loosing all the posts??
Cheers,
Antonello Lobianco

vm’s picture

export the forum content from the DB. and save the file, then you can remove the forum entires and start over and reimport the forum content.

What I don't seem to understand is in your case, you already have forum posts and now don't have the ability to put them in proper forums. That being said, what has changed within your drupal ? Onbiously something must have triggered this event ?

___________________________________________________________________________________________________
The search tool on Drupal.org really does work. This message has been brought to you by the letter X. Thanks for watching! : )

sylvaticus’s picture

hello.. thanks...

The only things I done I remember is to have removed the forum (unchecked in the module list) and replaced it back, but I am not sure is this the cause.

Today I discover that while in admin/content/forums I have the right forums and when I set a new forum I can see the "hierarchy", when I was placing a new post the hierarchy was missing.

I solved with:

1)

variable_del('forum_nav_vocabulary');

(a node preview on a node with input-type PHP is fine)
2) visited /admin/content/forum
3)

$vid = _forum_get_vid();
print 'This is the result from _forum_get_vid() ' . $vid;
$vid = variable_get('forum_nav_vocabulary', '');
print '<br>This is the result from variable_get(forum_nav_vocabulary, ) ' . $vid;

(a node preview on a node with input-type PHP is fine)
In my case I got in both cases 2, that is the right vocabulary ID for the forum. I don't know if the first two steps was even needed.
4) On table vocabulary_node_types I added the row vid=2 type=forum

Now seems to work :-))
But I think this issue should be investigated for further releases..

Cheers,
Antonello

kufeiko’s picture

Solved it the same way you explained - checked what vid the forum has and entered it manually in table vocabulary_node_types.

I guess there might be some issue with Advanced Forum module, but not sure.