On a Drupal 7.9 site that was upgraded from 6.x, User 1 receives the message "You are not allowed to post new content in this forum." as does every other user. I can create new Containers and new Forum sections and the problem occurs in every one. If I go to create an entry using the add content link for creating a forum entry, it does not let me select a forum in which to post it.

CommentFileSizeAuthor
ForumError.png59.08 KBmajortom

Comments

xjm’s picture

Status: Active » Postponed (maintainer needs more info)

Hi @majortom,

  1. Do you have any contributed access control modules installed, such as Forum Access or Taxonomy Access Control?
  2. Have you tried clearing your site cache?
  3. Is the taxonomy module enabled?
larowlan’s picture

4) can you rerun update.php
5) can you rebuild node access permissions

majortom’s picture

I have cleared the cache and rebuilt permissions (many times). I have taxonomy enabled. I have Forum Access and have tried it enabled with all permissions open, as well as disabled (and even with acl disabled). I have no other access control installed. I have enabled the Devel Node Access and get no report.

xjm’s picture

Project: Drupal core » Forum Access
Version: 7.9 » 7.x-1.x-dev
Component: forum.module » Code

It sounds to me like this is probably not a core issue. I've heard other reports of people having problems with the forum access upgrade. Try this, in the following order:

  1. Disable and uninstall forum access, ACL, and any other access control modules.
  2. Clear your cache and run update.php.
  3. Rebuild node access.
  4. Check your permission configuration.

If the nodes can then be accessed, go ahead and reinstall and reconfigure forum access.

salvis’s picture

@xjm:

I've heard other reports of people having problems with the forum access upgrade.

Huh? I haven't! Please send them my way so I can look into them.

@majortom:
Before you uninstall FA (and lose your configuration) try disabling Advanced Forum.
What version of FA are you using? Update to BETA1 if you haven't done so yet.

xjm’s picture

@salvis: I've seen it in IRC, but here's a forum post:
http://drupal.org/node/1339922

Here's another issue that also suggests disabling AF as salvis suggests:
#235571: "You are not allowed to post new content in forum."

salvis’s picture

Thanks, xjm! I replied in the forum.

The issue is an old one and has no bearing on the D7 versions.

majortom’s picture

Project: Forum Access » Drupal core
Version: 7.x-1.x-dev » 7.9
Component: Code » forum.module

After doing more research, I was discovered that the problem seems to have been with the upgrade from 6.x. I am not sure why, but the forum taxonomy vocabulary was renamed taxonomyextras and the storage was field_data_taxonomyextras. After renaming the tables, renaming some columns, and changing the field on the forum post page, I was able to get it working again. It had nothing to do with forum access.

salvis’s picture

Ok, thanks for letting us know.

Can we close this? If you want to pursue it regarding the difficult upgrade path, it's probably better to start a new issue, maybe with a link to this one.

majortom’s picture

Sure, but at least I think it should get moved back to the correct source (Drupal Core Forum Module). This had nothing to do with Forum Access and someone looking for this same issue would not find it there (for example if they didn't have Forum Access installed they might not look at the issue).

salvis’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
pcoffey’s picture

Title: User 1 can not post in any forum (nor can any other users). » No Forum Access, Same Problem

I'm having a similar problem with a clean install of Druipal 7.9, no Forum Access. I'm going to check it out, I'll let ya'll know what I find.

salvis’s picture

Title: No Forum Access, Same Problem » User 1 can not post in any forum (nor can any other users).
Priority: Major » Normal
Status: Closed (cannot reproduce) » Active

Oh, wow, that's interesting. Thank you for posting.

Clean install is very unlike difficult upgrade path, so there may well be something hiding somewhere...

Having as little ingredients as possible is key to finding the real culprit.

xjm’s picture

Status: Active » Postponed (maintainer needs more info)

Thanks @thelatte -- steps to reproduce the issue would be a huge help.

pcoffey’s picture

When I enabled the Forum module, I got a server error. My suspicion is that the Forum module didn't get to install completely, and I was missing some part of it in the db. I did un-install/re-install it, but the server still had errors and the issue was not resolved. It's quite possible that it was an problem with my server configuration. Perhaps the memory limit was set too low and wouldn't allow for the module to complete an installation. Maybe there was some other process running that I didn't know about that was eating up my memory. (pretty unlikely, but it's all I can think of) I didn't actually get to spend as much time on it as I wanted, the project needed to be completed, so I ended up doing a clean install of Drupal (same server) and exporting/importing my nodes/settings. Everything worked awesome, so I went on with my development. I intend on attempting to recreate the problem and solve it when I get some time though.

AndrewJarvis’s picture

Version: 7.9 » 7.10
Priority: Normal » Major

I'm also having this problem. Core, 7.10 - without Advanced Forum module I did not get an error, but could not post, and saw the "You are not allowed to post new content in this forum." message. I installed Advanced Forum module later to see if that would fix it--same message, no errors though.

xjm’s picture

Priority: Major » Normal

Please provide steps to reproduce the issue, like:
1. Install Drupal core.
2. Do X.
3. Do Y.

If one of the steps to reproduce the issue is "Install module X," then this issue should be moved to that module's queue.

AndrewJarvis’s picture

If I understand you correctly, here's my situation in the format you're describing:

1 - At 7.10 for Drupal core
2 - Never having enabled the Forum module before, or any other forum-related module
3 - Active forum:
- No error, but unable to post, even as user 1
4 - Active Advanced Forum module
- Same result

xjm’s picture

Thanks @AndrewJarvis. I just tested based on your comment, and the following steps alone are not sufficient to reproduce the issue:

  1. Install Drupal 7.10 using the standard profile.
  2. Remain logged in as user 1.
  3. Enable the forum module.
  4. Add a forum called "test forum" at admin/structure/forum.
  5. Create a new topic in the test forum at node/add/forum/2.

The topic is created without any issue. So, what I need is the additional steps that will cause the problem to happen. Maybe they start like:

  1. Install Drupal 6.24.
  2. Create a forum...
  3. Etc...
  4. Update to 7.12.
  5. Etc...

Thanks!

xjm’s picture

Tagging.

AndrewJarvis’s picture

Xjm,

Thanks for your help man--so far I have not been able to get it to work, or replicate it on another install.

I did, however, disabled all of the contributed modules that were on:

Biblio - PubMed
CCK Blocks
SlideshowSandstorm
Feeds Admin UI
Feeds Import
User Reference
Flag actions
Media
Better Formats
Block Theme
Form block
Pathauto
Search 404
CKEditor Styles
Workflow access
Workflow actions and triggers
Workflow rules
Workflow UI
Workflow views
XML sitemap
Administration menu Toolbar style
Biblio
Features
Feeds
Flag
Media
Insert
Menu Block
Token
Rules
Wysiwyg
Views Slideshow: Cycle
Views UI
Webform
Workflow
Administration menu
Entity tokens
Job Scheduler
Libraries
Views Slideshow
File entity
Entity API
Views
Chaos tools
Node Reference
References

Which left it with only core modules enabled. I flushed caches and refreshed the forum page, and it still has the message "You are not allowed to post new content in the forum." (logged in as user/1)

I have also tried the fix found in http://drupal.org/node/90214 where you run the following code:

variable_del('forum_nav_vocabulary');

It didn't seem to do anything. I'll try it again, maybe it didn't run last time.

Let me know what you would have me troubleshoot next.

Thanks!

Andrew

AndrewJarvis’s picture

I ran that code, and since I got something new, I'm guessing it hadn't run before :)

Ran this:

variable_del('forum_nav_vocabulary');

Now on forum page I get:

"No Forums Defined"
"You are not allowed to post new content in the forum."

Any suggestions? I know you're looking for ways to replicate the issue, but I can't very well start from scratch just to get this problem resolved. I realize this is a core bug forum, so your main concern isn't solving my problem, but fixing the more fundamental issue of why it happened to begin with. Which I totally support :) But, hopefully we can accomplish both goals, hehe.

xjm’s picture

The thing is, it might not be a core forum bug. :) It might be something weird a contributed module did to your site database in Drupal 6, or something. That's why steps to reproduce are so important. At least, it would be good to test and see if you can reproduce this by installing Drupal 6.x on a sandbox site, configuring forums like yours, and then upgrading that sandbox site to 7.x.

Maybe there are other helpful bits of information elsewhere on Drupal.org?

It appears the message you are getting is set in forum_menu_local_tasks_alter() when this loop comes up empty:

      // Loop through all bundles for forum taxonomy vocabulary field.          
      $field = field_info_field('taxonomy_forums');
      foreach ($field['bundles']['node'] as $type) {
        if (node_access('create', $type)) {
          $links[$type] = array(
            '#theme' => 'menu_local_action',
            '#link' => array(
              'title' => t('Add new @node_type', array('@node_type' => node_typ\
e_get_name($type))),
              'href' => 'node/add/' . str_replace('_', '-', $type) . '/' . $for\
um_term->tid,
            ),
          );
        }
      }

So, I'd guess that either the does not have access to create that node type (which should be impossible), or there is no taxonomy_forums field. You could do some debugging in that function to see which it is.

Edit: I guess, check that everything is configured correctly in the forums configuration? Check that the forums vocab is configured and has terms; check that the forum content type(s) are configured; check that they have the forum taxonomy field.

dddave’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

The lack of response suggests that #23 is right.

Arturus’s picture

Issue summary: View changes

Solution found
1. In the type of material "Forum" add the field "Forum section";
2. Give the Machine name "taxonomy_forums", but Drupal adds "field_taxonomy_forums";
3. Go to the mysql tables, look for the tables; this name is found, change to "taxonomy_forums" (in my tables: "field_config_instance" and "field_config"), you can not touch the _cache_ tables;
4. In the table "field_data_field_taxonomy_forums" change the name of the column "field_taxonomy_forums_tid" to "taxonomy_forums_tid".

After these manipulations, the forum works as it should, on the pages of the forum there appears a link to the creation of a new forum, the forums are created and shown in the appropriate sections.