| Project: | Publish Content |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | critical |
| Assigned: | aaronbauman |
| Status: | closed (fixed) |
Issue Summary
when assigning the publish/unpublish permissions i received the following error:
An illegal choice has been detected. Please contact the site administrator.
when i looked at the module code i found that sometimes the permissions have spaces in front of them:
$perms[] = ' publish '. check_plain($type->type) .' content';
$perms[] = ' publish own '. check_plain($type->type) .' content';
$perms[] = 'unpublish '. check_plain($type->type) .' content';
$perms[] = 'unpublish own '. check_plain($type->type) .' content';
when i removed the spaces everywhere everything was working again without the error
our webserver is protected by the suhosin layer (http://www.hardened-php.net/suhosin/) so perhaps that module strips the post variables after the submit
Comments
#1
+1
#2
There are more instances of leading spaces than documented above.
here's a patch.
#3
i get this error when i select and publish option.
An illegal choice has been detected. Please contact the site administrator.
i can select the unpublish options but not the publish options!! when i section any publish option i get the error
uploaded the patch file... dont know if i was just ment to upload it or edit the origial file though but i uploaded the abopve patcvh and still no joy.
#4
i went through the patch file and looked at the changed and changed the origial modual file and all worked fine.
#5
This module seems to be abandoned.
Pity because it actually works well other than this issue.
#6
committed to dev
http://drupal.org/cvs?commit=373934
#7
Automatically closed -- issue fixed for 2 weeks with no activity.