Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | nodereference_explorer-plugin-load-fail.patch | 1.5 KB | gnindl |
Comments
Comment #1
stacysimpson CreditAttribution: stacysimpson commentedWell, 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.
Comment #2
websitetechnician CreditAttribution: websitetechnician commentedHave 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.
Comment #3
gnindl CreditAttribution: gnindl commentedThe 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.
Comment #4
gnindl CreditAttribution: gnindl commentedPatch committed to repository: http://drupalcode.org/project/nodereference_explorer.git/commit/4f838f2
Comment #5.0
(not verified) CreditAttribution: commentedclarified which existing fields still worked.