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, 2016 at 19:01
  • Confirmed it's Magento 2.0.5 CE
    – Rob Olmos
    May 2, 2016 at 18:31

2 Answers 2

13

Looks like problem in server settings.

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

2
  • If I find you I'll hug you. Saved my life. Thanks heaps!
    – medina
    Dec 7, 2016 at 23:13
  • this thing does not solve my problem do you have any other working solution. Aug 30, 2022 at 10:18
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 and acknowledge you have read our privacy policy.

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