An illegal choice has been detected. Please contact the site administrator.

mike_r1977 - September 16, 2008 - 15:41
Project:Taxonomy Role
Version:6.x-1.0-beta1
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I installed this module, but whenever I try to set permissions (any kind of permission) I get this error:

An illegal choice has been detected. Please contact the site administrator.

I have no idea what's happenning here, since I followed the instructions in the readme to the letter.

#1

mike_r1977 - September 16, 2008 - 15:42

Needless to say, the permissions do not get set and the vocabularies show up regardless.

#2

der - September 22, 2008 - 01:28

More info is needed. Is this a drupal error or a php error or something else? What modules are installed? Does the problem go away when you uninstall the Taxonomy Role module? Is anyone else seeing this behavior?

#3

mike_r1977 - September 24, 2008 - 09:08

This was a red Drupal error that I got whenever I tried saving permissions. Considering that it prevented me to save permissions for other modules as well (CCK fields, for instance), I disabled the module and the problem went away. I would like to use this module as I really like the functionality, but since I'm on a deadline I don't know if I'll have the time to enable it again and reproduce the error in order to provide you with more details.

#4

ktleow - September 24, 2008 - 09:25

I dont think this is a problem related to this module...

I had this problem whenever there's a required field (typically a select list), but you've not selected any..

Hope that helps..

#5

alex.k - November 5, 2008 - 15:00

Could be related to the fact that permissions include the full vocabulary name. I see this error, too. Some vocab names look like this: access [Peter's test group] Group Files vocabulary - these come from og_vocab.

#6

alex.k - November 5, 2008 - 15:03

In fact that seems to be the reason, see attached screenshot. Vocabs that do not include square brackets get set, but the two last ones will not remain checked, and cause this error.

AttachmentSize
Picture 4.png 28.39 KB

#7

pixelpreview - January 27, 2009 - 20:08

same problem
when I install this module and check the access for image galery taxonomie ... only this I have the same red warning: an illegal choice ...

this vocabulary is not a manual vocabulary created by the user but a vocabulary created by a module on the install of this module (galery image in image module) That's perhaps the cause of the problem ?

no brackets for me in the name of the vocabulary

when I disabled the module, the warning disappear.

any idea ?

#8

pixelpreview - January 28, 2009 - 08:46

yes when i look into the vocabulary's table ... galery image vocabulary is the only with the mention galery_module and the others vocabularies have taxonomy like mention

that's the problem

alex K has the same problem because the vocabulary has created by og module ... and not by the administrator.

#9

iandickson - June 8, 2009 - 09:05

I also found that the & is an illegal character in vocab names. Solved by changing to "and".

#10

rank - August 21, 2009 - 05:14

For me the same errors appeared when trying to enable permission for any role to the 'what's new' free-tagging vocabulary.

#11

colincalnan - September 17, 2009 - 16:31
Component:Code» Miscellaneous

iandickson is correct in #9, it seems like having an ampersand & in your Vocabulary name causes the error. I changed them to 'and' and it worked. Thanks iandickson

 
 

Drupal is a registered trademark of Dries Buytaert.