I am unable to save a configurable product. This is the error I am getting:
Notice: Undefined variable: product in /domains/devportal.flavourwarehouse.co.uk/http/vendor/magento/module-catalog/Controller/Adminhtml/Product/Save.php on line 156
Saving simple products seems to work as expected.
Working on Magento ver. 2.2.6 with products migrated from Magento ver. 1.9.
If you need more information, please let me know.
UPDATE:
In the exception logs, I got:
[2019-01-29 11:28:18] main.CRITICAL: Warning: array_filter() expects parameter 1 to be array, string given in /domains/mydomain.com/http/vendor/magento/module-configurable-product/Controller/Adminhtml/Product/Initialization/Helper/Plugin/Configurable.php on line 145 {"exception":"[object] (Exception(code: 0): Warning: array_filter() expects parameter 1 to be array, string given in /domains/mydomain.com/http/vendor/magento/module-configurable-product/Controller/Adminhtml/Product/Initialization/Helper/Plugin/Configurable.php on line 145 at /domains/mydomain.com/http/vendor/magento/framework/App/ErrorHandler.php:61)"} []