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.
I've also stumbled across this issue.
Recently i had to up PHP memory limit to 512 as saving (new/updating) products would cause a PHP error and changes would be lost. That error has not come back.
But since introducing more options for customers I have found bundle items are getting deleted when over 96 options.
I've tried adding
php_value max_input_vars 2000 to .htaccess file (didn't work)
php_value max_input_vars 10000
</IfModule> in .htaccess (didn't work)
apache, nginx, server restarts including log out of admin and back in. Still no luck
188.8.131.52, ubuntu 14.04.5, VestaCP