I updated to Magento 2.2.6 via composer this morning however when running bin/magento setup:upgrade
I get the following error:
Attribute with ID "Manufacturer" does not exist
This shows after the Upgrading data part for Magento_ConfigurableProduct
within the setup upgrade command. Am wondering how to fix this and or if anyone else is experiencing it?
This seems to be caused by below code within UpgradeData.php for the Configurable Product module:
if (version_compare($context->getVersion(), '2.2.1') < 0) {
$relatedProductTypes = $this->getRelatedProductTypes('manufacturer', $eavSetup);
if (!in_array(Configurable::TYPE_CODE, $relatedProductTypes)) {
$relatedProductTypes[] = Configurable::TYPE_CODE;
$this->updateRelatedProductTypes('manufacturer', $relatedProductTypes, $eavSetup);
}
}
I do not have a manufacturer attribute within this instance and I'm wondering if it has been deleted. Looking at other instances however this attribute is present but not a system attribute and can be deleted from admin so am wondering if this attribute is really needed and if not this should not really cause setup:upgrade
to break?