在尝试更新Magento 1.7产品说明时,我们收到以下错误消息:
Fatal error: Uncaught exception 'Exception' with message '
Warning: Invalid argument supplied for foreach()
in /app/code/core/Mage/Index/Model/Event.php on line 167'
in /app/code/core/Mage/Core/functions.php:245
Stack trace:
#0 /app/code/core/Mage/Index/Model/Event.php(167): mageCoreErrorHandler(2, 'Invalid argumen...', '/var/www/magent...', 167, Array)
#1 /app/code/core/Mage/Index/Model/Event.php(199): Mage_Index_Model_Event->_mergeNewDataRecursive(false, Array)
#2 /app/code/core/Mage/Index/Model/Resource/Event.php(67): Mage_Index_Model_Event->mergePreviousData(Array)
#3 /app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(423): Mage_Index_Model_Resource_Event->_beforeSave(Object(Mage_Index_Model_Event))
#4 /app/code/core/Mage/Core/Model/Abstract.php(318): Mage_Core_Mode in /app/code/core/Mage/Core/functions.php on line 245
任何想法,出了什么问题?
感谢您的帮助
的Matthias
答案 0 :(得分:0)
我遇到了同样的问题,使用了错误的商店ID。
Mage::app()->setCurrentStore(1);