I updated core to 7.14 this morning and have since not been able to save any changes to contextual filters in views.
I can open the pop up window to edit but clicking Apply results in the 'An illegal choice has been detected. Please contact the site administrator.' error message.
All views still seem to function correctly, I just can't edit contextual filters in the UI.
I've checked that it's definitely related to the core update, I have a copy of the site I'm working on which has otherwise been untouched today. Checked the views UI was working - it was - updated core, same issue.
Anyone else experiencing this?
Comments
Comment #1
andykisaragi commentedWatchdog says 'Illegal choice *relationship* in Flag element.'
Comment #2
greta_drupal commentedConfirming same. Site was working fine until I updated to 7.14. Did nothing on the site but the update. I too have error-producing view with both contextual filter(s) and relationship.
Tried to narrow the problem a bit futher, but remove the relationship -- it re-appears. I removed it (once by clicking the relationship name link then clicking the REMOVE button; also tried selecting Rearrange, then clicking the "remove" link on that table), but then when I saved the View, it re-appeared. So, the remove didn't take.
Frustrating. Even just a quick patch would be most appreciated. (I'd do it if I was capable.)
Comment #3
david_r_moore commentedI also have the same issue. Within a Block display, changing the contextual filter results in "An illegal choice has been detected. Please contact the site administrator".
Comment #4
jibranSame error here.
Comment #5
abubakarshams commentedSame error on my site
Comment #6
Mujtaba Ahmed commentedHaving same issue.
Comment #7
dawehner*Ouch* That's definitive at least a major problem ...
So i updated my dev installation to 7.14 and played around with contextual filters, but hey everything still works.
I fail on all areas of reproducing bugs ...
Can someone try to give an easy way to reproduce that problem? Just something like that
* add a new view of type node
* add a contextual filter FOO etc...
Comment #8
dawehnerJust a link to a somehow related issue on drupal itself: #811542: Regression: Required radios throw illegal choice error when none selected
Comment #9
muranod commentedSame issue here. Also reported it on http://drupal.org/node/1560062. Users reporting issue with both context and comments.
Mine seemed to be with Context and Delta front, but may extend to the rest of the site as well (i have run out of time to test after replacing Context with Drupal's block placement).
Updated from 7.12 to 7.14.
Omega theme, Delta homepage with Views blocks placed by Context.
Can't edit contexts without the illegal choice error.
After further testing, does not seem to be an Omega / Delta issue. I cannot create or edit contexts. I get the "illegal choice" error and the context won't save.
All worked perfectly before the update. Ran database updates again just to be sure -- no difference.
Comment #10
shakman commentedSame issue. Steps to produce is pretty straightforward:
Changing a parameter causes this error to pop up. If you go with the defaults, all goes fine.
I don't think this is related with the theme.
Comment #11
rteuber commentedSame issue.
In addition to #10
If you have already a contextual filter then a second one in the same view is only saved with the error message even if you go with the defaults.
Comment #12
dawehnerI still wasn't able to reproduce the problem. Both with 7.x-3.x and 7.x-3.3 i could save multiple changed contextual filters ...
My core version is at 7.14, so this shouldn't be a problem ... I fear though that this is more a core issue.
Comment #13
lakshminp commentedThe patch in comment #2 of http://drupal.org/node/1484352 seems to solve the issue.
Comment #14
greta_drupal commentedRef #13 patch seems to have resolved for me, as well. I have the Flag module enabled, applicable to the content of the "breaking" view.
Comment #15
shakman commentedRef #13 patch resolved this issue.
Thanks lakshminp.
Comment #16
dawehnerSo this is now really a duplicate of #1484352: Illegal choice *relationship* in Flag element causes Views contextual filters to fail
Thanks lakshminp for finding the issue in flag! This really helped people
Comment #17
greta_drupal commentedYeah, seriously a good get. Saved me a bunch of time.
Comment #18
andykisaragi commentedyep, confirming patch in #13 seems to solve the issue. Thanks lakshminp!
Comment #19
muranod commentedI don't have the flag module enabled or installed. I also can't seem to apply the patch (my skills aren't there yet). Tried TortoiseSVN and a few GnuWin32, but both keep throwing back errors. I would love to have the context module available again.
Comment #20
andykisaragi commentedmuranod, the patch is for the flag module so if you don't have it on your site then the patch will definitely fail..!
It sounds like you must be experiencing a different root issue if you're seeing this error without the flag module installed.
Comment #21
muranod commentedYou're right. Sorry about that. I had tried another patch for Omega theme's Delta module, but I could not get that to work. Same scenario, different module affected. Like everyone here, started with the 7.14 update. So, is this something in core, or something in the way the Context module operates? I had to disable it.
Comment #22
andykisaragi commentedThe specific issue I had (and by the sounds of it most others who have commented) is not related to the context module (I'm not using it). It seems to be a combination of the Flag module and the 7.14 core upgrade.
I believe the 7.14 was mostly security related & tightened up some form stuff, so it seems plausible that it may have affected several modules including context.
Comment #23
joshuautley commentedI can confirm the issue exists with Drupal 7.14 and Flag module. After disabling the Flag module I can once again edit/create Contextual Filters with an option other than "Display all results for the specified field". And there is no more "Illegal operation" error.
Comment #24
ShedPhotons commentedNot using flag module, but still have this issue after the 7.14 update. Using OpenPublish distribution with Omega and Display Suite.
Opened up the “blocks” reaction to edit it, re-locating some content from content zone to sidebar-second zone. Attempting to save spawns the error: "An illegal choice has been detected".
The blocks location mechanism uses an array of checkboxes to select and assign - the most likely relationship to this bug.
Comment #25
andykisaragi commentedShedPhotons, Looks like it may be caused by the same root issue in core but your bug probably belongs in the Context issue queue?
Comment #26
ShedPhotons commentedThank you. Wasn't sure where to post it. Note: Solved this by disabling Delta (under Omega theme module).
Comment #27
mr.marlin commentedI had the error too when trying to update a context (after updating to 7.14) which was related to the Delta module. I saw on a thread where it was advised to add the Delta option to the reaction. Then delete it later. That didn't work, but what did work was adding the delta to the reaction, and saving it. So what I had to do was in Delta, add a new snapshot of my base sub-theme. Go back into structure/context, and edit or create a new context with what ever options you want, but the Delta has to be a part of one of your choice reactions, with either your custom delta snapshot, or the base sub-theme delta selected. And now I can save without error.
Administration/Reports:
"http://localhost:8082/admin/structure/context/add" + "Illegal choice in Select Custom theme settings template. element." = error
Comment #28
joelrotelli commentedThe flagg module was also the problem for me. Thanks