I am getting this warning when im trying to add a product:
Warning: array_filter() expects parameter 1 to be array, string given in
/html/vendor/magento/module-configurable-product/Controller/Adminhtml/Product/Initialization/Helper/Plugin/Configurable.php on line 145
this is the code:
}
$extensionAttributes>setConfigurableProductLinks(array_filter($associatedProductIds));
}
Best Answer
I Found Solution after R&D On Magento database.
Login In your phpmyadmin
Go to your website database
Open "eav_attribute" table
Find Your multiselect "attribute_id"
Edit Row
If "backend_model" Column blank then paste this
Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend