Magento Forum

   
Product save error
 
EmChaabelasri
Jr. Member
 
Avatar
Total Posts:  19
Joined:  2008-12-31
Maroc - Oujda
 

Hi,
I want to update attribute value of my products, when I try to save the product objet i have this error message :

WarningInvalid argument supplied for foreach()  in C:\xampp\htdocs\ech\app\code\core\Mage\Eav\Model\Entity\Abstract.php on line 938
Trace
:
#0 C:\xampp\htdocs\ech\app\code\core\Mage\Eav\Model\Entity\Abstract.php(938): mageCoreErrorHandler(2, 'Invalid argumen...', 'C:\xampp\htdocs...', 938, Array)
#1 C:\xampp\htdocs\ech\app\code\core\Mage\Eav\Model\Entity\Abstract.php(892): Mage_Eav_Model_Entity_Abstract->_collectSaveData(Object(Mage_Catalog_Model_Product))
#2 C:\xampp\htdocs\ech\app\code\core\Mage\Core\Model\Abstract.php(251): Mage_Eav_Model_Entity_Abstract->save(Object(Mage_Catalog_Model_Product))
#3 C:\xampp\htdocs\ech\app\code\community\Sqli\BestViews\Model\Event.php(39): Mage_Core_Model_Abstract->save()
#4 C:\xampp\htdocs\ech\app\code\community\Sqli\BestViews\Model\Observer.php(25): Sqli_BestViews_Model_Event->catalogProductView(8)
#5 C:\xampp\htdocs\ech\app\code\core\Mage\Core\Model\App.php(1166): Sqli_BestViews_Model_Observer->catalogProductView(Object(Varien_Event_Observer))
#6 C:\xampp\htdocs\ech\app\Mage.php(301): Mage_Core_Model_App->dispatchEvent('catalog_control...', Array)
#7 C:\xampp\htdocs\ech\app\code\core\Mage\Catalog\controllers\ProductController.php(128): Mage::dispatchEvent('catalog_control...', Array)
#8 C:\xampp\htdocs\ech\app\code\core\Mage\Core\Controller\Varien\Action.php(367): Mage_Catalog_ProductController->viewAction()
#9 C:\xampp\htdocs\ech\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(247): Mage_Core_Controller_Varien_Action->dispatch('view')
#10 C:\xampp\htdocs\ech\app\code\core\Mage\Core\Controller\Varien\Front.php(158): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#11 C:\xampp\htdocs\ech\app\Mage.php(457): Mage_Core_Controller_Varien_Front->dispatch()
#12 C:\xampp\htdocs\ech\index.php(52): Mage::run()
#13 {main}

In my scripts, the products model have a voide “origData”,
Can you help me please

Many thanks
Em. Chaabelasri

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top