Permissions page in the Drupal admin doesn´t save

written by Admin


Posted on 2015-05-15


Problem

With a lot of modules, permissions and user roles, the permissions page in the Drupal web-admin can become so big that stops saving.

Solution

Add this lines of php in /sites/default/settings.php:
ini_set('pcre.backtrack_limit', 10000000);
ini_set('pcre.recursion_limit', 500000);

Add or correct this lines in your php.ini or .htaccess file:
php_value max_input_vars 2048
php_value max_input_time 120

If your server has the PHP-Suhosin patch installed, add/correct in the php.ini file:
php_value suhosin.post.max_array_index_length 512
php_value suhosin.post.max_name_length 512
php_value suhosin.post.max_vars 2048
php_value suhosin.request.max_array_index_length 512
php_value suhosin.request.max_vars 2048

P.S. Try also higher values. These are right for my (complex) sites.

Feedback


Leave a Comment:


Search

Categories

android x 1
apache x 1
apple x 4
backup x 2
cygwin x 1
dns x 1
dos x 1
drupal x 3
ftp x 1
iis x 1
imap x 1
linux x 22
mail x 4
mysql x 3
oracle x 1
pop3 x 1
print x 2
proxy x 1
rsync x 1
shell x 8
smtp x 1
squid x 1
ssh x 1
storage x 2
web x 3
windows x 15

Welcome

We need collaboration and a real boost from our community: write us an email for every trick you find!

This website is a sysadmin swiss-knife for every-day Windows, Linux and Mac administration and troubleshooting

Our database grows if YOU send us your tips and trick as soon as you find them every day!