I have a rather big custom menu on my site (around 260 links). I don't know when it happened, but I cannot reorder links anymore. After changing weights (with dragging or weight method) and clicking "Save configuration" the page just refreshes with absolutely no confirmation or error message and the changes are not saved. I cannot figure out what causes the problem, maybe some module, but the only one I use for menus is Superfish and Menu Firstchild and I already checked these. Other small menus on site work fine - the changes are saved.

// update
I found the solution. Submiting weight changes in huge menu like mine sends over 1000 POST vars. Increasing max_input_vars in php.ini (and in suhosin if used) from 1000 to 3000 or more fixes the issue.

Comments

dadderley’s picture

@Countach

I am on a Rackspace server. The site (drupal 6) is a help section for a software company. The menus are enormous.
In Rackspace you do not have access to the php.ini, but adding this line in the main .htaccess file worked.

php_value max_input_vars 3000

Thanks again, you rock!

dadderley’s picture

I am using upgrading this site with the large menu to a Site5 server running PHP Version 5.3.27.
Same problem.

Here I created a php.ini file and added these lines:

max_input_vars = 30000;
suhosin.get.max_vars = 30000;
suhosin.post.max_vars = 30000;

This works.