When creating a new node reference field in 6.22, I receive the following error:
Illegal choice nodereference_explorer in _add_new_field element.

The problem is logged in form.inc because 'nodereference_explorer' is not listed as a valid option; however, I cannot figure out how to get past the issue.

Existing nodereference fields seem to work fine; however, I cannot edit any of the widget-centric field settings.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stacysimpson’s picture

Well, I beat my head against the computer for the better part of a day and cannot figure out why this widget shows up as an option initially, but isn't in the list when the form is validated.

FWIW, I ran across a module, http://drupal.org/project/noderelationships, that seems to do the same thing. At least for our use-case.

websitetechnician’s picture

Have the same issue with a 6.22 install of mine as well. The workaround I've been using for it is instead of going directly in to edit the field itself I click to edit the content type first then go into manage fields and select the field using explorer. All the options magically come back.

gnindl’s picture

Status: Active » Fixed
FileSize
1.5 KB

The problem lies in the function nodereference_explorer_plugins() which might not load the CCK widget if file permissions are restrictive. The patch addresses this problem by avoiding to call this function at all and sets the the return value for nodereference_explorer_widget_info() statically. Patch will be committed soon.

gnindl’s picture

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

clarified which existing fields still worked.