cancel
Showing results for 
Search instead for 
Did you mean: 

Adding new configurations to existing configurable product results in error

Adding new configurations to existing configurable product results in error

When trying to add new size options to an existing configurable product (via edit configurations), I now get this error:

 

Notice: Undefined variable: product in /var/www/html/magento2/vendor/magento/module-catalog/Controller/Adminhtml/Product/Save.php on line 150

 This is Magento 2.2.5 EE and that file has not been edited in any way.  Basically I have a product that has 10 sizes currently, and I need to add 2 more.  Is there another way of doing this outside of edit configurations?

2 REPLIES 2

Re: Adding new configurations to existing configurable product results in error

The error in the exception log is that the image uploaded does not exist or not a file (FileSystemException).  I selected images for the new size configuration.

Re: Adding new configurations to existing configurable product results in error

Hello @joseph_digiovanna

 

Like if you want to add to add two more configurations to your product it will not allow you as there is an issue in adding configurations :

https://github.com/magento/magento2/issues/17436

 

Other than this you can do this by csv import.

 

For this go to Admin -> System -> Export -> Products -> And export that particular configued product by its sku.

After that you have to edit the csv and and assign these two sizes simple products to your configured product.

Then again import this csv from Admin -> System -> Import.

 

Now remove cache and you will see the two more configurations are added as expected.

 

Problem solved? Click Kudos & Accept as Solution!