Hi

I am new to Drupal.
When I use Hierarchical Select with sub tree
it is giving the following error
Please find the link below
http://geethasripellipandiri.com/?q=user/register

In the form 'Relegion / Caste' feild is giving
An illegal choice has been detected. Please contact the site administrator.

Comments

ahmedwali’s picture

I have the same problem

kamenrs’s picture

I also have the same problem.

joemoraca’s picture

I have same error -- only for anonymous user - if I am logged in there is no error.

Also the error is written to the screen even though i have errors messages set to not display.

blackandcode’s picture

I also have the same error

seanbfuller’s picture

If you're getting the "illegal choice" error, check to see if you also have a radio button field on the page with no default. It might be that HS is just exposing a bug on the field. I was having the same issue, so I disabled HS because I thought it was causing the error. Then I was testing another Ajax widget and started to see the same error. When I checked the watchdog, I saw some form errors on another field. Apparently a radio button with no default will throw the "illegal choice" error instead of the correct "required" error due to a bug in d7. Not sure if this is the entire issue, but changing the problematic form element to a select box seemed to fix the issue for me. See #811542: Regression: Required radios throw illegal choice error when none selected for more info.

skizzo’s picture

even if you do not have a radio button, patch 811542-45 may fix the problem
(it did it for me). Please note that the patch applies cleanly to both D8 and D7.

skizzo’s picture

Priority: Critical » Normal
betz’s picture

#5 was indeed my problem, thanks for mentioning this seanbfuller!

kars-t’s picture

Status: Active » Fixed

Dear fellow Drupal enthusiasts,

this issue is now lasting for a very long time in the issue queue and was unfortunately never solved. As Drupal is a open source project everyone is helping on voluntary basis. So that this is was not solved is nothing personal and means no harm. But perhaps no one had time to deal with this issue, maybe it is too complex or did not describe the problem comprehensibly.

But this issue is not the only one. There are thousands of issues on Drupal.org that have never been worked on or could not be processed. This means that we are building a wave that is unmanageable and just a problem for the Drupal project as a whole. Please help us keep the issue queue smaller and more manageable.

Please read again, "Making an issue report" and see if you can improve the issue. Test the problem with the current Core and modules. Maybe the problem doesn't exist anymore, is a duplicate or has even been solved within this issue but never closed.

Help can also be found for it on IRC and in the user groups.

In order to remove this issue, I have set this issue to "fixed"

If there is new information, please re-open the issue.

Status: Fixed » Closed (fixed)

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

josefajardo’s picture

Issue summary: View changes

I am new to Drupal too, my problem is that I use cloud server and IIS window sistem, installing the module hierarchical select produces this error:

FastCGI Error
The FastCGI Handler was unable to process the request.

Error Details:

•The FastCGI process exited unexpectedly
•Error Number: -2147467259 (0x80004005).
•Error Description: Unspecified error
HTTP Error 500 - Server Error.
Internet Information Services (IIS,

I use Drupal 6.x, you can helpme
to solve this problem?, Thank You.

pixelsweatshop’s picture

Issue summary: View changes

@josefajardo, your issue is unrelated to this one. Please open a new one. Also, please do not change the issue summary unless you know what you are doing.

pixelsweatshop’s picture

Issue summary: View changes