Trying to add more than 100 simple products as available options in a bundled product but a weird thing is happening as it is not allowing to save it further. When saved the last options actually disappear from admin.
Any idea why this is happening? Or if there a limit?
There must be some configuration changed needed at server or Magento level.
Solved! Go to Solution.
This might be to do with the max_input_vars PHP variable. Because so much data is being submitted when adding that many products you may need to increase this variable. If you are submitting more data than this variable allows it will truncate the data.
Thanks. Have tried increasing max_input_vars to 8000 from the default 1000 but still facing the same issue i.e. last options that are added get vanished upon saving.
Any other thing to be changed to make it better?
If you are getting an issue with max_input_vars you will be getting a php warning somewhere. Possibly in the apache logs on your server. Can you check that first to see if yo are getting any errors / warnings.
Also, what version of Magento are you using?
But how to solve problem in magento 2.1.12 ?
The issue got resolved by restarting php-fpm:
The value that we changed wasn't in effect unitl php-fpm restarted.