0

I have a Symfony 2 form component. It works perfectly on small dataset. However, when I try to manage a large dataset (about 800 variables), the form component has a strange behaviour.

Using breakpoint, I've isolated the problem: the submitted variable of the form is set to false. In consequence, the code which persists data is not executed and I'm redirected to the form input page (like the first time).

For some reasons, form variables are not binded to the form object. I "manually" add them as post parameter. As I said before, it works great on smaller dataset.

Any help/suggestion on this would be really appreciated.

DavidL
  • 1,120
  • 1
  • 15
  • 34
  • How are you running your installation ? php built in server, nginx, apache, ... ? – jobou Jul 10 '16 at 18:48
  • More than likely the request is timing out try setting a higher timeout. That or the post request is exceeding size limits again this can be increased by changing your .ini settings. – Doug Jul 10 '16 at 19:12
  • I'm running classic php configuration using MAMP on Windows – DavidL Jul 10 '16 at 19:27
  • @Doug Size limit is set to 200M (`upload_max_filesize` and `post_max_size`). I'm not sure about timeout, but all keys with timeout tag have at least 60 secondes ; page is reloaded way before that. – DavidL Jul 10 '16 at 19:35
  • If you check the raw posted data, can you see all the data (including the form token) ? – j-guyon Jul 11 '16 at 07:34

1 Answers1

0

Problem solve by increasing max_input_vars (in php.ini file) as suggested in this post.

Community
  • 1
  • 1
DavidL
  • 1,120
  • 1
  • 15
  • 34