I can't get more than one node reference to work correctly. When creating more than one node reference, any reference other than the first return a "an illegal choice has been detected" error when using the "search & reference" feature.
Example:
The parent node is "Events". The two referenced nodes are "films" and "event_details", created in that order. When using search & reference to attach an "Event Details" node to "Events", I get the error message. Watchdog's message is: "Illegal choice films in type element".
Is this telling me that the form thinks it's dealing with the "film" node when it's actually supposed to be dealing with "event_details"?
I've read this similar issue: (http://drupal.org/node/866206), but I'm not logging in-and-out as described in that post.
I have a very basic install, the correct jquery UI (1.7.3) and have experimented with turning off all non-essential modules (and using the Garland theme), without any success. I've read everything else I can find about this error message, but nothing jumps out to me as a solution.
I'm stumped!
Comment | File | Size | Author |
---|---|---|---|
#6 | noderelationships-966460-2.patch | 1.38 KB | chromix |
#5 | noderelationships-966460.patch | 1.16 KB | chromix |
Comments
Comment #1
sdowney2002 CreditAttribution: sdowney2002 commenteddu'oh. Never mind, issue resolved. I simply uninstalled, then reinstalled "Views". Cleared the issue.
Comment #2
chromix CreditAttribution: chromix commentedAnother way to fix this issue: edit the noderelationships_noderef view, click on the node type filter, uncheck "Remember" and then update and save. Clear your views cache and this error should go away.
Comment #3
chromix CreditAttribution: chromix commentedActually, the solution I posted doesn't work. This error is also being reported elsewhere:
http://drupal.org/node/961488
http://drupal.org/node/684082
http://drupal.org/node/866206
I think this is a larger problem with the module which needs to be addressed, unless this has already been fixed elsewhere? I'm using Views 6.x-2.12, Node Relationships 6.x-1.6, jQuery UI 6.x-1.4, jQuery Update 6.x-2.x-dev, Modal Frame API 6.x-1.7.
Comment #4
chromix CreditAttribution: chromix commentedAlso noting this is an error that typically happens when two views are displayed on the same page. I'm using 2 different node reference fields on the same node type, each of which pick different node types, so that must be the problem. Hiding the exposed type filter removes the error, but I'd like to find a better solution.
http://drupal.org/node/347590
Comment #5
chromix CreditAttribution: chromix commentedThis patch fixed the bug for me. Apparently all you have to do is ensure that each exposed type filter has a unique identifier. I accomplished this by just modifying each identifier from 'type' to 'type_field_name'.
Comment #6
chromix CreditAttribution: chromix commentedSorry guys... the original patch won't work with customized views. Use this one instead.
Comment #7
janisto CreditAttribution: janisto commentedThanks for saving my day chromix, your latest patch solved my issues with two node reference fields.
Comment #8
feedbackloop CreditAttribution: feedbackloop commentedThank you, chromix... that would've been a pain for me to track down!
Comment #9
thijsvdanker CreditAttribution: thijsvdanker commentedThanks Thomas, patch works like a charm.
Comment #10
markus_petrux CreditAttribution: markus_petrux commentedcommitted, thanks!
- http://drupal.org/commitlog/commit/9764/31db520c1f335c85e576f2e0eb4e6c48...