When you first enable the Forum module, you see a new menu item to create a forum topic (node/add/forum). Now, if you attempt to create a forum topic, it'll say that you can't create a forum topic because "Forums field is required." Since there arn't any forums in existance yet, this is impossible. It might make sense just to disable node/add/forum until at least one forum is available.

Steps to reproduce:

  1. Fresh Drupal install
  2. Enable the forum module
  3. Visit node/add/forum to create a forum topic
  4. Fill in all the fields and attempt to create the forum topic
  5. See a warning that the forum field is required

Solution to the problem:
Make the node/add/forum menu item not available until at least one forum taxonomy exists.

Comments

mot’s picture

Status: Active » Closed (fixed)

Thanks for reporting, but this is bogus. The module is enabled to create a forum (then there is at least one) or you do not need one then you should not enable the module. So if you want to create a forum you have to activate the forum module to create one. This is done right after the activation of the forum module. So the reported only exists in this small time-frame between activating the module and creating the first forum. Closed.

whitecloud’s picture

As a newbe, I had the same problem. Even as admin I couldn't create a forum even though I had enabled the module.

My 2 mistakes were:
1. I had created a forum container but no forum (which needed to be created in the "Administer/Forums" page. Container seems optional.

2. It's very easy to be confused here as it looked like one could simply add a forum in the "Create Content/forum topic" page. Of course this is not so but it is easy to make this mistake when unfamiliar with Drupal.
A Forum needs to be setup before posting Topics to it.

JB

heather’s picture

Status: Closed (fixed) » Needs work

Contrary to what mot implies in #1, the settings for the Forum module to not automatically appear to the user who has just created the forum module. This could lead to an assumption that the module has been enabled, and is ready to use. As well, the forum settings are not in "Configuration and modules", but under "Structure". I have duplicated this problem through my own use of Drupal 7.

Fresh installed from latest head. Enabled forums. Add content > clicked 'Forum topic'. Filled form: Title, Forums * (says required but no options in menu except 'None' and no indication that need to be created)

Error:

    * Forums field is required.
    * Notice: Trying to get property of non-object in forum_node_validate() (line 211 of /Users/heather/Sites/drupal7/modules/forum/forum.module).
    * Notice: Trying to get property of non-object in forum_node_validate() (line 212 of /Users/heather/Sites/drupal7/modules/forum/forum.module).

Possible Solutions:

Option 1: Hide the creation of the node/add/forum until at least one Forum is created

Option 2: Give a message, after the module is enabled: Configure and add forums This could be done in any case.

Option 3: Improve the error text to the administrator. In the case that no forums exist, giving them a link to:
admin/structure/forum

If forum options exist but user didn't select say:

* Forums field is required (current message)

If forum options don't exist, tell the administrator with permissions:

* The site currently has no Forums configured. Configure and add forums

andypost’s picture

Issue tags: +Usability, +D7UX usability

I think this should have fallback as when there's no content types defined - points to page where user could create a forums

Also related #12089: Better method of showing forum containers in form

andypost’s picture

By default 'general discussion' forum created (at this moment of time)

heather’s picture

This looks fixed then!

Only local images are allowed.

I think David's point initially was that an error gets generated. And now, it just works!

Looks like a closer to me. What say you?

andypost’s picture

I think this should be marked as fixed

Bojhan’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)
Issue tags: -Usability, -D7UX usability

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

avpaderno’s picture

Issue summary: View changes

I deleted a spam comment and reverted the changes done from the spammer. I apologize for bumping this issue.