Mantis Bugtracker

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005278 [Quercus] major always 11-17-12 20:43 12-29-12 23:06
Reporter kevinw8801 View Status public  
Assigned To nam
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.34 Product Version 4.0.31
  Product Build
Summary 0005278: can not save permission in drupal6.26
Description - install drupal6.26
- go to adminster page
- click permissions
- check any permission and click save permissions
- it will report following error
"An illegal choice has been detected. Please contact the site administrator"
- while this works very well in php environment

Steps To Reproduce
Additional Information after some investigation, it turns out that for the checked item in this form, the element key is added "_" automatically.
for example if check "administer blocks" for anonymous, after click "save permissions" button, there should be a element in the form with key "administer blocks" in the posted form array, while in quercus environment, it become ?administer_blocks?, why is understood added there?
Attached Files  form2.jpg [^] (224,167 bytes) 11-17-12 20:43
 form1.jpg [^] (229,669 bytes) 11-20-12 18:53

- Relationships

- Notes
11-20-12 20:04

Thanks Keven for the bug report. Attachments are not working (because this site is running on a very old version of Quercus), but I should have all the information I need to reproduce the bug.
11-21-12 18:43

thanks Nam! Basically the attachment is to show the data printed by krumo (from devel modules which is for debug), you can also check this way,

- go to drupal_installation_dir/includes/
- add var_dump($form) in line 410
   function drupal_process_form($form_id, &$form, &$form_state) {
   $form_state['values'] = array();
   var_dump($form["#post"]["1"]); // or krumo($form) if you use devel
- go to permission page
- check "administer blocks" for anonymous user
- click "save permission", then you'll get the dump like the following
array(2) { ["administer_blocks"]=> string(17) "administer blocks"

while using LAMP system, it will show the following,
array(2) { ["administer blocks"]=> string(17) "administer blocks"

- the key "administer_blocks" will have the form validate fail and report the error

function _form_validate($elements, &$form_state, $form_id = NULL) {
 foreach ($value as $v) { <= around line 715 in
            if (!isset($options[$v])) {
            form_error($elements, $t('===An illegal choice has been detected. Please contact the site administrator.'));
12-29-12 23:06


Fixed for 4.0.34. Thanks for the very detailed bug report! I introduced this bug while fixing other issues about 6 months.

- Issue History
Date Modified Username Field Change
11-17-12 20:43 kevinw8801 New Issue
11-17-12 20:43 kevinw8801 File Added: form2.jpg
11-20-12 18:53 kevinw8801 File Added: form1.jpg
11-20-12 20:04 nam Note Added: 0006091
11-21-12 18:43 kevinw8801 Note Added: 0006092
12-29-12 23:01 nam Status new => assigned
12-29-12 23:01 nam Assigned To  => nam
12-29-12 23:06 nam Status assigned => closed
12-29-12 23:06 nam Note Added: 0006129
12-29-12 23:06 nam Resolution open => fixed
12-29-12 23:06 nam Fixed in Version  => 4.0.34

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
35 total queries executed.
28 unique queries executed.
Powered by Mantis Bugtracker