5

I am using Magento 2 and I created an attribute called hair_color that is of a visual swatch input type. I have inputted 140 swatch options for this attribute, but on the 141 I keep getting this error:

Notice: Undefined index: option_141 in /var/www/html/magento2/vendor/magento/module-swatches/Model/Plugin/EavAttribute.php on line 177

I am having difficulties figuring out what is the issue since I am using the admin interface to do this.

enter image description here

2
  • Which version of Magento CE are you using?
    – Rob Olmos
    Apr 29 '16 at 19:01
  • Confirmed it's Magento 2.0.5 CE
    – Rob Olmos
    May 2 '16 at 18:31
13

Looks like problem in server settings.

Please try increase max_input_vars setting to 100000 and try reproduce problem.

1
  • If I find you I'll hug you. Saved my life. Thanks heaps!
    – medina
    Dec 7 '16 at 23:13
0

the below code work for me after Magento 2 root .htaccess adding below code bottom.

Add Value as required

php_value max_input_vars 60000

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.