I had problems with relation select not doing anything when clicking search. I looked at dblog and saw following errors:
Notice: Undefined index: subform-profile_abcd_player-field_abcd_player_team-und-0-exposed_filters in relation_select_ajax() (line 886 of modules/contrib/relation_select/relation_select.module).
Warning: Invalid argument supplied for foreach() in relation_select_ajax() (line 903 of modules/contrib/relation_select/relation_select.module).
After "some" debugging I found another error message in system log /var/log/messages :
Oct 26 12:05:29 host suhosin[27606]: ALERT - configured request variable name length limit exceeded - dropped variable 'subform-profile_abcd_player-field_abcd_player_team-und-0-exposed_filters[view_name]' (attacker '127.0.0.1', file 'index.php')
Oct 26 12:09:52 host suhosin[27835]: ALERT - configured POST variable name length limit exceeded - dropped variable 'subform-profile_abcd_player-field_abcd_player_team-und-0-exposed_filters[form_id]' (attacker '127.0.0.1', file 'index.php')
I solved the problem editing suhosin configuration and restarting php.
/etc/php.d/suhosin.ini
suhosin.request.max_varname_length = 128
suhosin.post.max_name_length = 128
I don't know if this should be solved by relation_select(or subform) code at all. I just posted this issue for everybody's information and consideration. I left it at needs review for maintainers to check and close it.
Comments
Comment #1
nwom commentedEven though this is an old issue, I just wanted to note that the "Needs review" status is for patches that have been added to an issue. In this case the status would still be active.