Is there a limit as to how many roles one can have for a given site?
I have a role and realized that a set of permission was missing and tried to add them, but they don't stick after they permissions are removed again.
So I deleted the role and created it again and now I can't assign ANY permissions to this role.
Any idea what causes and how to fix it.
thanks in advance

actually I can't add permissions for ANY ROLES as I just found out

Comments

GreenSkunk’s picture

For User Roles, please check out the Drupal Docs section User Access & Management Settings and Getting started with Drupal 7 Administration and
Managing access control with permissions and user roles

actually I can't add permissions for ANY ROLES as I just found out

Are you logged in on the maintenance/administrator account?

"It is a damn poor day when you don't learn something!" - Mr. Jones, teacher

Badenser’s picture

Yes I am USER 1
Yes I know how to add Roles/ permissions.

I have a Role and a Content Type and I can assign this Role certain permissions, including permissions to manipulate certain Content Types, but I can't assign permissions to this role for some other Content Type; every time I to save the permissions don't get updated.

So at first this seemed to be limited to just one specific role, which is why I deleted and recreated the role as well as the Content Type.... to no avail.

When Scrolling thru the permissions I also noticed that there are other Roles that had certain permission missing. I tried to add those, but the results were the same... the permissions didn't get updated with the save.

so I change the memory in settings.php:

ini_set('pcre.backtrack_limit', 500000);
ini_set('pcre.recursion_limit', 500000);

first uncommenting the lines and then changing them to 500k from the initial 200k

no go

so next

php_value max_input_vars 5000  
php_value max_input_time 120 
php_value suhosin.post.max_array_index_length 512  
php_value suhosin.post.max_name_length 512  
php_value suhosin.post.max_vars 5000  
php_value suhosin.request.max_array_index_length 512  
php_value suhosin.request.max_vars 5000

to .htaccess since I couldn't find a suhosin , mind you I am no expert and don't even know if I added it in the right spot, stuck it where there was other php_ stuff

Oh, I also deleted several roles, several Content Types, even went so far as un-installing CiviCRM since it creates tons of check-boxes and well, still nothing....
While I can live without CiviCRM, for the near future anyway, the role in question and its permissions however would be a quite cumbersome workaround.

kfrotelli’s picture

I've had this problem before. It happens when you have too many permissions. It has to do with the post variable limit being exceeded.

You can try increasing your post max vars, and request max vars. If you don't have access to this, then use Permissions API module (http://drupal.org/project/permissions_api) and you can set the permissions using Drush. It works very well.

Badenser’s picture

unfortunately their is no D7 version for this,
so I guess it will up to the provider.

for some reason my php.ini now only consists of 3 lines

memory_limit = 256M
extension="pdo.so"
extension="pdo_mysql.so"
Nicolas Bouteille’s picture

I was facing this problem. Indeed, I had too many modules and too many roles causing too many checkboxes on the permission page breaking the POST memory limit.
I had to edit my MAMP php.ini and set max_input_vars = 2000;
http://www.zigpress.com/2012/11/11/fields-missing-from-post-in-php-this-...