If you go to node/add/forum when no forums exist yet, and attempt to submit the form, you get:

# An illegal choice has been detected. Please contact the site administrator.
# warning: strtr() [function.strtr]: The second argument is not an array. in /Users/webchick/Sites/head/modules/syslog/syslog.module on line 99.

You ought to not be able to get to this page anyway when no forums exist :P, but I think that's a separate issue from the fact that FAPI doesn't deal well with this condition.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jjgronk’s picture

"An illegal choice has been detected. Please contact the site administrator."

chx’s picture

Status: Active » Reviewed & tested by the community
FileSize
845 bytes

Fixes the watchdog call. Forum (actually taxonomy) patch forthcoming.

Dries’s picture

Status: Reviewed & tested by the community » Needs work

I committed the first patch; waiting for the next one. Thanks.

chx’s picture

Status: Needs work » Needs review
FileSize
1.04 KB

This is a broader issue than forum.

chx’s picture

error was setting the wrong element.

catch’s picture

Status: Needs review » Needs work

patch fixes the issue, but introduces notices instead:

# notice: Undefined property: stdClass::$taxonomy in drupal6/modules/forum/forum.module on line 219.
# notice: Undefined index: #name in drupal6/includes/form.inc on line 1262.
# notice: Undefined index: #id in drupal6/includes/form.inc on line 1262.

dpearcefl’s picture

Status: Needs work » Postponed (maintainer needs more info)

Is this still a problem in current D6?

dpearcefl’s picture

Status: Postponed (maintainer needs more info) » Needs work

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.