Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changes to the User Permissions Not saving

I am use drupal 6.

it seems like permission page can not save too many settings.

I have try to save permission setting, but it is just not saved into DB. I have found out this is due to "too many fields". (use content permission module). if i uncheck some fields, and then checking lesser fields, permission will be saved.

for example, if I am unchecking 2 check boxes, then checking one check box, permission will be saved.

does any one know which function the permission page used to insert result into db?

my php memory limit is 256M.

like image 934
anru Avatar asked Feb 19 '26 22:02

anru


2 Answers

You need to adjust the max_input_vars in php.ini. The usual default is 1000, but with a lot of modules, the Drupal permissions page easily eclipses this. Just add another zero and make it 10000 if you have access to php.ini and restart apache. The location of the php.ini file depends on your server configuration.

I had the same issue, with no errors in the error log, and this fixed it for me.

like image 107
joedivic Avatar answered Feb 21 '26 11:02

joedivic


There is a good explanation of the issue that you are having here: http://2bits.com/drupal/drupal-not-saving-admin-pages-large-number-input-fields.html

like image 39
Cristian Mamani Avatar answered Feb 21 '26 10:02

Cristian Mamani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!