Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For some reason it says "You are not allowed to post new content in forum." on the forum view despite being logged in as admin.Disabling advanced forum allows me to post comments (using the traditional interface).
I have checked the permissions and it appears to be fine. It's a pretty clean test installation (5.7) so don't expect any problems. The theme is bluebreeze.
Any help would be much appreciated!
Thanks,
Chris.
Comment | File | Size | Author |
---|---|---|---|
error.jpg | 22.39 KB | chrism2671 |
Comments
Comment #1
ixeft CreditAttribution: ixeft commentedI have exactly the same problem
after upgrade 5.3 to 5.7
Thank you for all your work on drupal!
Comment #2
sotiris CreditAttribution: sotiris commentedSame problem too, even with the core Forum Module.
I get ->
warning: Invalid argument supplied for foreach() in ...\drupal-6.1\modules\forum\forum.module on line 672.
and
"You are not allowed to post new content in forum."
I have checked the permissions, and everything is ok.
Sotiris.
Comment #3
sotiris CreditAttribution: sotiris commentedThis http://drupal.org/node/90214 helped me to solve the problem!
I made it with this way because for some reason it couldn't reset the variable that was keeping the vocabulary id.
1. First create a new forum.
Admin->content management->forums->add forums.
Then open your drupal database with phpmyadmin probably, and open the table "term_data".
Locate the record that has the name of the forum that you created before, write down the vid field number for that record, because we are going to use it. (In my Database this number is "0").
2. Open the table "vocabulary", and locate the record with your forum vocabulary, it's the one with the value "forum" at the module field.
At this record you have to change-update the current value of it's vid field, with the number that you wrote at the previous table.(term_data)
3. Open the table "vocabulary_node_types", locate the record with the value "forum" at the field type and change-update the vid value with the same number as you done before at "vocabulary" table.
That's it.
Now, you can post new content to your forum!
Comment #4
MichelleGuess you guys figured it out.
Michelle
Comment #5
dr00b CreditAttribution: dr00b commentedThank you greatly for your post! I ran into this as I had installed both advanced forum and OG forums, not realizing that there was incompatibility. Although following your steps did not work in my case (step 3 had no record to change), the http://drupal.org/node/90214 link tips fixed the issue.
Comment #6
dr00b CreditAttribution: dr00b commentedJust curious, how could this issue be closed if the solution requires manually editing the database? Don't mean to be rude, I am genuinely curious. Is the problem with OG, OG_Forums or Advanced Forums? It is not clear to me.
Comment #7
MichelleThe problem is with core forums. Since it has nothing to do with advforum, and the fix was posted, it's marked fixed.
Michelle
Comment #8
dr00b CreditAttribution: dr00b commentedGot it, thank you. Great work on advanced forums, btw.
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #10
soccastar001 CreditAttribution: soccastar001 commentedI have tried this and I've run into a road block. There is no value in my vocabulary_node_types table. I try adding one with my vid number and type forum but it gives me a list of errors and doesn't add it.
Any help or direction would be greatly appreciated.
Comment #11
MichellePlease don't reopen closed issues for new support requests. This isn't an advanced forum issue. I'm sorry to be harsh, but I simply don't have time to debug problems for people that are not part of my modules.
Michelle
Comment #12
AdamGerthel CreditAttribution: AdamGerthel commentedEDIT:
Nevermind me :)
Fixed with the help from instructions above. You need to create the line in the DB if it's not there.
Thanks for a great module michelle!
Comment #13
akwala CreditAttribution: akwala commentedRE: Drupal 6.6
I didn't know this when I first created the forums. I ended up creating a vocabulary independently of the forum module. So, I have 2 vocabularies, "Tags" & "Forums", and I've been using the "Forums" vocab as if it were for the forum module, but it's not. Here's the record in table 'vocabulary':
The vid for the newly created forum, "Temp Forum", following your instructions, is 0.
How should I fix this? Should I change the module field to "forum" as well? If I do that, what would the ramifications be?
--aslam
Comment #14
kim-day CreditAttribution: kim-day commentedI just ran into this same problem on a drupal 6.19 site so decided to post what worked for me here in case it can help someone else. (@Michelle - hope this does not open the issue again ... I don't want to create work for anyone!) After scanning this page I realized that when I enabled the advanced forum module I enabled it and all its dependencies (including the forum module) all in one step. So, to fix the issue, I turned off and uninstalled both the forum and advanced forum modules then I enabled forum by itself (and hit save). Then I did the same for advanced forum. This fixed the problem for me. No more "you are not allowed to post new content in forum" error messages.
The above worked fine but I ran into the problem again when I used devel generate to 'Generate categories' and checked the 'Delete existing terms and vocabularies before generating new content' option. Uninstalling and re-enabling the modules fixed the problem for this scenario too.
Comment #15
grahamvalue CreditAttribution: grahamvalue commentedFound an easier solution that worked fine for me.
Disabling, uninstalling and then enabling the forum module again seems to fix the bug too.
I think this happens when you enable forum without enabling the required taxonomy module.
Drupal prompts you to enable taxonomy but I'm guessing it's already run the forum install script by then, which probably messes up the vocab data.
Comment #16
jentre CreditAttribution: jentre commentedSotiris, you are my savior, thank you!
Comment #17
joco_sp CreditAttribution: joco_sp commented#15 worked for me
Comment #18
jvieille CreditAttribution: jvieille commented#3 made it (step 3: missing record)