The "Add new forum topic" button is missing at the top of all my forums. Instead the following message is displayed: "You are not allowed to post new content in this forum", even for User 1.
However, I know the permissions are ok to post a new topic, as I can do it via the "Add content" menu option.

Also, when selecting to display all "Active Posts" a message is displayed that an invalid vocabulary is selected. However, the list of "Active Posts" is then displayed successfully below. The same is the case for "Unanswered topics" and "New posts".

Thirdly, the icon next to each forum topic is a padlock, indicating that they are locked. However, users are able to comment ok.

These problems are apparent after correcting the forum taxonomy by applying the patch in comment#17 on this topic: http://drupal.org/node/1003308

I know that I'm not the only one with these problems. See comments #19, #42, #43, #44

If I deactivate Advanced Forum, the problems go away.

CommentFileSizeAuthor
#21 AF7_1145852_1.patch563 bytestroky
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

troky’s picture

Priority: Normal » Major

I am aware of several problems you mentioned and trying to figure out what's wrong...

troky’s picture

Status: Active » Needs review

You should apply patch from #1003308: Forum module cannot decide if it wants 'taxonomy_forums' hardcoded in it leading to faulty functioning - comment #52 or get forum module from current dev tree.

Topic icon issue is solved in current AF dev release. commit 7c54d40

Check if that solves your problem.

saparker’s picture

Thanks - the dev version of AF does fix the topic icon issue.

I have already applied the patch in comment #17 of the thread you refer to. I think the comment #52 patch is the same with some test data in addition.

If you think the latest dev version of the forum module would help, could you please advise where i can find the "dev tree" - please excuse my ignorance!

troky’s picture

Yes, patch from #17 is practically the same.
Have you ran http:///update.php after patch?

"Add new forum topic" link still missing?

Above patch(es) fixed that for me...

saparker’s picture

hi, yes, i ran update.php and it adjusted the vocabulary. The "add new forum topic" is still missing sadly.

troky’s picture

Since I can't reproduce the problem it will be hard to debug it... :(

Do you get "Login to post new content in forum." message when browsing forum as guest?

saparker’s picture

Yeah, that's a shame.

I do get "Login to post new content in forum." message when browsing forum as guest, and then as soon as i log in the message changes to "You are not allowed to post new content in this forum."

In comment #19 of the #1003308 thread, user GStegemann has posted a few screenshots to illustrate. I don't know if the "invalid vocabulary" error is helpful in the "Active Threads" screenshot. Maybe there's still something wrong with the forum vocabulary. Is there anything I can check in my Drupal database that would be enlightening?

troky’s picture

One additional question... is it clean D7 install or D6 upgraded?

troky’s picture

Do you have forum_access module installed?

saparker’s picture

It's a D6 upgrade. I used to have forum_access installed on D6 but had all sorts of problems with it on D7, so have moved over to Taxonomy Access Control Lite, which works better.
Other modules I have installed are: captcha; civicrm; ctools; date; devel; privatemsg; swekey; themekey; views; webform; webform_civicrm; wysiwyg

troky’s picture

Do you have a possibility to redo upgrade D6->D7 with patched D7 core forum module?
You are not the first one that has problems after upgrade.
It's more core forum because AF doesn't mess with permissions and stuff.

saparker’s picture

I think that it would be too much hassle to redo the d6-d7 upgrade.

I had a look in my Drupal database tables and made the following observations. I'm not sure whether they're all relevant or not:
1. The "rdf_mapping" table maps type "taxonomy_term" to bundel "forums" (note, not "forum" as other tables do)
2. The "field_config" table has field_name "taxonomy_forums" mapped to module "taxonomy" (not "forum")
3. The "taxonomy_vocabulary" table has name "Forums" mapped to machine_name "vocabulary_5" (not "forums")

Re point 3 above, I tried changing the "taxonomy_vocabulary" row to "forums". This enabled the "Add new forum topic" button (HOORAY), but then when I pressed it, the list of forums was missing (BOO), so you could only post to "N/a" forum. This isn't very helpful...
Any ideas?

saparker’s picture

Also, I've noticed a few other little glitches that may be related:
- New comments are numbered on the Forum pages, but when you go to the individual Topic page it always shows there being no new comments
- Even with the dev version of AF, all topics are shown as Hot, regardless of the number of comments

troky’s picture

Check forums structure.
Check taxonomy_term_data table and make sure "vid" column matches "vid" from taxonomy_vocabulary Forums line.

saparker’s picture

ok, yes the forums in taxonomy_term_data have a vid=5, which matches the Forums vid in taxonomy_vocabulary

troky’s picture

I don't have any other thoughts for now except the fact that upgrade process corrupted forum data and that you shour redo upgrade again.

saparker’s picture

troky, no problems. Thanks for all your ideas.

troky’s picture

Status: Needs review » Closed (fixed)

Usual problems when upgrading from D6. Not AF related after all.

Zarevac’s picture

I am experiencing similar problems. I just installed this module. If I am in the root of a forum I cannot post a new topic as it says: You are not allowed to post new content in this forum.

However, I can post through the shortcut interface. Another issue is that the Views aren't counted but I believe that to be a setting that I didn't properly set. After using the Alpha I installed the Dev. No changes. I do run ACL, I disabled this to no avail.

Miria’s picture

I'm having the same issue or similar I believe.

After upgrading from Drupal 6 to 7, installing 7.x-2.0-alpha1, running update.php and getting error, then reinstalling from backup, re-upgrading, running update.php, I still get "You are not allowed to post new content in this forum" when logged in, even as admin.

Changing the "taxonomy_vocabulary" row to "forums" as in #12 gives me the same result: It looks like it's fixed at first when the "You are not allowed to post new content in this forum" message changes to the "Add new forum topic" button. But clicking it brings up the forum topic form with no forum taxonomy to select from, and an error that insists I select from this non-existent list if I try to create an "orphaned" topic.

I am also running Forum Access, though disabling/uninstalling the module still gives me the error. The only way to lose the error is to disable Advanced Forum, then the default forums allow me to create a forum topic without an issue. (But they just don't look as cool as AF. ;))

Switching to the latest dev still gives the error. I have a small site and have simply given my users the url to post a new forum topic, which works perfectly fine (though they have to manually select the forum), but it would be nice to be able to make it easier for them to contribute. :)

troky’s picture

Status: Closed (fixed) » Fixed
FileSize
563 bytes

As of Drupal 7.2 forum field name is fixed to 'taxonomy_forums' (it was 'taxonomy_<vocabulary machine name>' before) and all mess with forums vocabulary machine name is (hopefully) gone.

Patch committed.

Miria’s picture

Fixed it for me! Thank you greatly! :)

Zarevac’s picture

Same here. THnx.

GStegemann’s picture

After switching to the AF dev version from June 7 everything seems to be working again. Great! Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.