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.
Hi Andy,
The issue got resolved by restarting php-fpm:
/etc/init.d/php-fpm55 restart
The value that we changed wasn't in effect unitl php-fpm restarted.
Hi.
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.
http://php.net/manual/en/info.configuration.php#ini.max-input-vars
Regards,
Andy
Hi,
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?
Hi.
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?
Regards,
Andy
But how to solve problem in magento 2.1.12 ?
@navaidahmedwrote:Hi Andy,
The issue got resolved by restarting php-fpm:
/etc/init.d/php-fpm55 restart
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)
tried
<IfModule mod_php5.c>
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
1.9.3.8, ubuntu 14.04.5, VestaCP