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.
Comment | File | Size | Author |
---|---|---|---|
#21 | AF7_1145852_1.patch | 563 bytes | troky |
Comments
Comment #1
troky CreditAttribution: troky commentedI am aware of several problems you mentioned and trying to figure out what's wrong...
Comment #2
troky CreditAttribution: troky commentedYou 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.
Comment #3
saparker CreditAttribution: saparker commentedThanks - 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!
Comment #4
troky CreditAttribution: troky commentedYes, 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...
Comment #5
saparker CreditAttribution: saparker commentedhi, yes, i ran update.php and it adjusted the vocabulary. The "add new forum topic" is still missing sadly.
Comment #6
troky CreditAttribution: troky commentedSince 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?
Comment #7
saparker CreditAttribution: saparker commentedYeah, 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?
Comment #8
troky CreditAttribution: troky commentedOne additional question... is it clean D7 install or D6 upgraded?
Comment #9
troky CreditAttribution: troky commentedDo you have forum_access module installed?
Comment #10
saparker CreditAttribution: saparker commentedIt'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
Comment #11
troky CreditAttribution: troky commentedDo 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.
Comment #12
saparker CreditAttribution: saparker commentedI 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?
Comment #13
saparker CreditAttribution: saparker commentedAlso, 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
Comment #14
troky CreditAttribution: troky commentedCheck forums structure.
Check taxonomy_term_data table and make sure "vid" column matches "vid" from taxonomy_vocabulary Forums line.
Comment #15
saparker CreditAttribution: saparker commentedok, yes the forums in taxonomy_term_data have a vid=5, which matches the Forums vid in taxonomy_vocabulary
Comment #16
troky CreditAttribution: troky commentedI don't have any other thoughts for now except the fact that upgrade process corrupted forum data and that you shour redo upgrade again.
Comment #17
saparker CreditAttribution: saparker commentedtroky, no problems. Thanks for all your ideas.
Comment #18
troky CreditAttribution: troky commentedUsual problems when upgrading from D6. Not AF related after all.
Comment #19
Zarevac CreditAttribution: Zarevac commentedI 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.
Comment #20
Miria CreditAttribution: Miria commentedI'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. :)
Comment #21
troky CreditAttribution: troky commentedAs 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.
Comment #22
Miria CreditAttribution: Miria commentedFixed it for me! Thank you greatly! :)
Comment #23
Zarevac CreditAttribution: Zarevac commentedSame here. THnx.
Comment #24
GStegemann CreditAttribution: GStegemann commentedAfter switching to the AF dev version from June 7 everything seems to be working again. Great! Thanks!