Magento: Cannot add new attribute option values or delete after adding too many values

I've been trying different fixes for the issue mentioned but the fix below is the best. To fix this issue, do the following in php.ini:

memory_limit = 256M
max_execution_time = 3600
max_input_time = 600
post_max_size = 512M
max_input_vars = 100000
suhosin.post.max_vars = 100000
suhosin.request.max_vars = 100000

You may add some lines if they don't exist yet.

In CentOS, php.ini can be found in /usr/local/lib/php.ini.
In Ubuntu, it's residing in the following :
/etc/php5/apache2/php.ini
/etc/php5/cgi/php.ini
/etc/php5/cli/php.ini

After modifying php.ini, please don't forget to restart Apache.

That's all!

Comments

Post a Comment

Popular posts from this blog

How to fix Cignal Top Box error - Please perform a smart card reset by removing your smart card for 15 seconds then reinsert the card. (1/2)

Magento: can't login to admin panel, can't add product to cart

Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Catalog\Model\ProductRepository::getProductFromLocalCache() must be of the type string, null given, called in /vendor/magento/module-catalog/Model/ProductRepository.php on line 270 and defined in vendor/magento/module-catalog/Model/ProductRepository.php:751