In the taxonomy override page I tried "Term has parent(s)" as a selection rule but was unable to select anything (see attached image). If nothing is selected all is fine but with a selection I get an "An illegal choice has been detected. Please contact the site administrator." error.
grossmann-mcs

Comments

stockliasteroid’s picture

I'm having this issue as well. The form being submitted must not match the form that was built on the server somehow.

dwkitchen’s picture

Same issue here in the log the error is:

Illegal choice in Terms element.

andypost’s picture

Status: Active » Needs review
StatusFileSize
new3.7 KB

Confirm. This means that chosen element of the form is not in allowed values!

Provided patch:
- changes 'select' to 'checkboxes' - right now select does not return any result values
- removes unused validation key, if you implemet validation it's not triggered
- optimizes storage, filtering values on submit and optimizes in_array() to isset()

Jinbo’s picture

After saved, Error:
Notice: Trying to get property of non-object in ctools_term_has_parent_ctools_access_summary() (line 161 of /path/to/ctools/plugins/access/term_has_parent.inc).

andypost’s picture

@eclife do you tried my patch #3

jenlampton’s picture

Status: Needs review » Reviewed & tested by the community

Wow, much improved UI! (and error gone).

merlinofchaos’s picture

Status: Reviewed & tested by the community » Fixed

Committed! THanks!

Status: Fixed » Closed (fixed)

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

acbramley’s picture

StatusFileSize
new57.53 KB

Hi, sorry for reopening but I was getting the same issue and after applying the patch I now get a spinner that never loads (see screenshot). In my dblog I can see the following errors:

Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1552 of /var/www/drupal-site-scmp/includes/bootstrap.inc).
Warning: Invalid argument supplied for foreach() in form_type_checkboxes_value() (line 2249 of /var/www/drupal-site-scmp/includes/form.inc).
Notice: Undefined index: include_self in ctools_term_has_parent_ctools_access_settings() (line 83 of /var/www/drupal-site-scmp/sites/all/modules/contrib/ctools/plugins/access/term_has_parent.inc).
acbramley’s picture

Status: Closed (fixed) » Needs work
andypost’s picture

Status: Needs work » Closed (fixed)

@acbramley Just delete/add this criteria - I've tested right now with patch applied to ctools-rc1
Also probably you have a very big vocabulary so loading takes a lot of time but this not related to the issue - please file another one

andypost’s picture

Issue summary: View changes

fixed typo