Undefined index: delete in vendor/magento/module-swatches/Model/Plugin/EavAttribute.php on line 177

New Add New Attribute

Notice: Undefined index: delete in /vendor/magento/module-swatches/Model/Plugin/EavAttribute.php on line 177

Definitely, it is a core bug, because the core should never fall to the E_NOTICE.
What Magento 2 version do you use?

yes, I am using magento 2

I lowered my magento.com

What exactly Magento 2 version do you use?

magento.co yes I did download,
magento-ce-2.0.0-2015-11-17-05-47-46.zip

Same problem here when adding or updating color swatch. Looks like the “delete” array is not complety filled:
Last entries in the value part:
403 =>
array (
1 => ‘black/gold-yellow/white (BLGOYEWH)’,
0 => ‘DA-BLGOYEWH’,
3 => ‘’,
2 => ‘’,
),
271 =>
array (
1 => ‘limette/grau (C234)’,
0 => ‘FA-C234’,
3 => ‘’,
2 => ‘’,
),
),

Last entries in the delete part:

270 => ‘’,
403 => ‘’,
),

Option 271 is missing, so

foreach (array_keys($optionsArray[‘value’]) as $optionId) {

            if (i**sset($optionsArray['delete'])** 

fails

Solution: increase max_input_vars :smile:

1 Like