Blog

Solved: Magento 2: Database Instllation Error Notice: Undefined index: attribute_id in

 

Solution:

Go to vendor\magento\module-msrp\Setup\Patch\Data\ChangePriceAttributeDefaultScope.php

comment line no 89 to 94

$categorySetup->updateAttribute(
            $entityTypeId,
            $attribute['attribute_id'],
            'is_global',
            \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_GLOBAL
        );

and in the file vendor\magento\module-msrp\Setup\Patch\Data\ChangeMsrpAttributeLabel.php comment out line no 41 to 46.

$categorySetup->updateAttribute(
            $entityTypeId,
            $msrpAttribute['attribute_id'],
            'frontend_label',
            'Minimum Advertised Price'
        );

Run the setup install command again to start installation.

Leave a Reply

Your email address will not be published. Required fields are marked *