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.

CommentFileSizeAuthor
error.jpg22.39 KBchrism2671
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ixeft’s picture

Version: 5.x-1.0-alpha3 » 5.x-1.0-alpha5
Category: support » bug
Status: Closed (fixed) » Active

I have exactly the same problem
after upgrade 5.3 to 5.7

Thank you for all your work on drupal!

sotiris’s picture

Version: 5.x-1.0-alpha5 » 6.x-1.x-dev
Category: support » bug

Same 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.

sotiris’s picture

This 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!

Michelle’s picture

Status: Active » Fixed

Guess you guys figured it out.

Michelle

dr00b’s picture

Thank 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.

dr00b’s picture

Just 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.

Michelle’s picture

Category: bug » support

The problem is with core forums. Since it has nothing to do with advforum, and the fix was posted, it's marked fixed.

Michelle

dr00b’s picture

Got it, thank you. Great work on advanced forums, btw.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

soccastar001’s picture

Version: 6.x-1.x-dev » 5.x-1.0-alpha3
Status: Closed (fixed) » Active

I 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.

Michelle’s picture

Status: Active » Closed (fixed)

Please 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

AdamGerthel’s picture

Version: 5.x-1.0-alpha5 » 5.x-1.0-alpha3
Category: bug » support
Status: Active » Closed (fixed)

EDIT:

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!

akwala’s picture

RE: 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':

vid | name  |  description | help | relations | hierarchy | multiple | required | tags | module  |   weight
  1 | Forums|              |      |       1   |     2     |     0    |      1   |    0 | taxonomy|   0

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

kim-day’s picture

I 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.

grahamvalue’s picture

Found 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.

jentre’s picture

Sotiris, you are my savior, thank you!

joco_sp’s picture

#15 worked for me

jvieille’s picture

Version: 5.x-1.0-alpha3 » 7.x-2.x-dev
Issue summary: View changes

#3 made it (step 3: missing record)