As nearly as I've been able to ascertain, the problem lies in having too many checked boxes in total. I don't know where this limitation is set, though. My php post_max_size is 8M, so that's not an issue.
I'm running Drupal 4.7.11, PHP 5.2.4.
Any ideas what would cause the list of checked boxes sent to PHP to be cut off or dropped when it's too long?
I've managed to learn that the form ($_POST['edit']) gets truncated when it's too long. One of the last fields is the form_id. Losing this, the submitted for is tossed. I don't know why long forms are truncated, though.
I'm rather surprised nobody else has ever run into this problem. As the number of user roles times the number of modules grows, Drupal should exhibit this problem. Perhaps nobody else is running in a "hardened" PHP configuration, or else my site is particularly large (in config, not in nodes).
I believe I may have found the solution, although I'm as yet unable to test it. (I'm dependent upon my hoster for such PHP config changes.) These PHP variables default to only 200 but should be increased:
suhosin.post.max_vars
suhosin.request.max_vars
Recommended values appear to be 2000 or 2048. According to self-identified security gurus, there is no risk avoided by having such low defaults. I expect it's control for control's sake.
I'm experiencing the same problem (in Drupal 5.6) and it seems to be very similar to this one: http://drupal.org/node/229906 (the difference seems to be that in this last case there is an additional problem with blocks).
Thanks for sharing your issue and the solution (it worked for me too).
Comments
giving up
I'm dumping the banner module. Removing it avoids the issue--dunno why. Gonna try a replacement, maybe the ad module.
spoke too soon
Ad module does it, too. I think there's something systemic about the issues. Maxing out some resource or other?
too many checkboxes
As nearly as I've been able to ascertain, the problem lies in having too many checked boxes in total. I don't know where this limitation is set, though. My php post_max_size is 8M, so that's not an issue.
I'm running Drupal 4.7.11, PHP 5.2.4.
Any ideas what would cause the list of checked boxes sent to PHP to be cut off or dropped when it's too long?
form too long
I've managed to learn that the form ($_POST['edit']) gets truncated when it's too long. One of the last fields is the form_id. Losing this, the submitted for is tossed. I don't know why long forms are truncated, though.
possible solution
I'm rather surprised nobody else has ever run into this problem. As the number of user roles times the number of modules grows, Drupal should exhibit this problem. Perhaps nobody else is running in a "hardened" PHP configuration, or else my site is particularly large (in config, not in nodes).
I believe I may have found the solution, although I'm as yet unable to test it. (I'm dependent upon my hoster for such PHP config changes.) These PHP variables default to only 200 but should be increased:
suhosin.post.max_vars
suhosin.request.max_vars
Recommended values appear to be 2000 or 2048. According to self-identified security gurus, there is no risk avoided by having such low defaults. I expect it's control for control's sake.
I'm experiencing the same
I'm experiencing the same problem (in Drupal 5.6) and it seems to be very similar to this one: http://drupal.org/node/229906 (the difference seems to be that in this last case there is an additional problem with blocks).
Thanks for sharing your issue and the solution (it worked for me too).
yeahh man
this suhosin issue should be included in the requirement !
It caused so many problems.
Thanks !