解决Magento“Must specify JSON encoded source for decoding”的问题!
发表时间:七月. 31, 2010 | 作者: Freddie | 类别:Magento, 开源系统
在更改magento属性系列的时候,出现了这样的问题:
“Must specify JSON encoded source for decoding”
下面是报错的内容:
#0 /home/mycpanelusername/public_html/app/code/core/Mage/Adminhtml/controllers/Catalog/Product/SetController.php(99): Zend_Json_Decoder::decode(NULL)
#1 /home/mycpanelusername/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(349): Mage_Adminhtml_Catalog_Product_SetController->saveAction()
#2 /home/mycpanelusername/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php(143): Mage_Core_Controller_Varien_Action->dispatch(’save’)
#3 /home/mycpanelusername/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(174): Mage_Core_Controller_Varien_Router_Admin->match(Object(Mage_Core_Controller_Request_Http))
#4 /home/mycpanelusername/public_html/app/Mage.php(447): Mage_Core_Controller_Varien_Front->dispatch()
#5 /home/mycpanelusername/public_html/index.php(52): Mage::run()
#6 {main}
Google了一下,问题解决了:
Try turning off your cache in magento (in the admin->System->Cache Management->Disable All Cache) and then navigate to your cache directory (\var\cache) and manually delete everything in that directory. You can delete the stuff in (\var\session) for good measure as well if you like. Then try the attribute sets again.
1.禁用所有缓存。
2.到你的web服务器,进入\var\cache目录下,删除所有文件即可!

