Magento: Warning in Mage/Eav/Model/Entity/Abstract.php ?

Martin ZellerMagento 1 Comment

All you want to do is saving a product like this? [php]$api = new Mage_Catalog_Model_Product_Api(); $productData = array(); $productData[‘visibility’] = Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE; $productData[‘status’] = Mage_Catalog_Model_Product_Status::STATUS_DISABLED; $api->update($product->getId(), $productData);[/php] Or maybe without the API? [php]$product->setVisibility(Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE); $product->setStatus(Mage_Catalog_Model_Product_Status::STATUS_DISABLED); $product->save();[/php] And all you get is an error like this? [text]Warning: Invalid argument supplied for foreach() in /opt/lampp/htdocs/whlid/app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 972 #0 /opt/lampp/htdocs/whlid/app/code/core/Mage/Eav/Model/Entity/Abstract.php(972): mageCoreErrorHandler(2, ‘Invalid argumen…’, ‘/opt/lampp/htdo…’, …