Magento在尝试查看销售时出现以下错误报告 - >管理后端的订单页面。
我试图重新生成缓存并启用/禁用编译器,但都没有成功清除错误。
其他注意事项包括今天安装新的OPC模块以及手动重启mySQL。
Magento Commerce
There has been an error processing your request
Can't retrieve entity config: sales/sales_flat_order
Trace:
#0 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Model/Resource.php(272): Mage::throwException('Can't retrieve ...')
#1 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(284): Mage_Core_Model_Resource->getTableName('sales/sales_fla...')
#2 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(488): Mage_Core_Model_Resource_Db_Abstract->getTable('sales_flat_orde...')
#3 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(569): Mage_Core_Model_Resource_Db_Collection_Abstract->getTable('sales_flat_orde...')
#4 /var/www/vhosts/xxxxx.com/httpdocs/app/code/local/Mage/Adminhtml/Block/Sales/Order/Grid.php(60): Mage_Core_Model_Resource_Db_Collection_Abstract->join('sales_flat_orde...', 'main_table.enti...', Array)
#5 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php(626): Mage_Adminhtml_Block_Sales_Order_Grid->_prepareCollection()
#6 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php(632): Mage_Adminhtml_Block_Widget_Grid->_prepareGrid()
#7 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(862): Mage_Adminhtml_Block_Widget_Grid->_beforeToHtml()
#8 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#9 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml('grid', true)
#10 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Container.php(77): Mage_Core_Block_Abstract->getChildHtml('grid')
#11 /var/www/vhosts/xxxxx.com/httpdocs/app/design/adminhtml/default/default/template/widget/grid/container.phtml(36): Mage_Adminhtml_Block_Widget_Grid_Container->getGridHtml()
#12 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/vhosts...')
#13 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
#14 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#15 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
#16 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Adminhtml/Block/Widget/Container.php(308): Mage_Adminhtml_Block_Template->_toHtml()
#17 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Adminhtml_Block_Widget_Container->_toHtml()
#18 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#19 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Text_List->_toHtml()
#20 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#21 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#22 /var/www/vhosts/xxxxx.com/httpdocs/app/design/adminhtml/default/default/template/page.phtml(74): Mage_Core_Block_Abstract->getChildHtml('content')
#23 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/vhosts...')
#24 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
#25 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#26 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
#27 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Adminhtml_Block_Template->_toHtml()
#28 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#29 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#30 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php(95): Mage_Core_Controller_Varien_Action->renderLayout()
#31 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Adminhtml_Sales_OrderController->indexAction()
#32 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#33 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#34 /var/www/vhosts/xxxxx.com/httpdocs/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#35 /var/www/vhosts/xxxxx.com/httpdocs/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#36 /var/www/vhosts/xxxxx.com/httpdocs/index.php(89): Mage::run('', 'store')
#37 {main}
Error log record number: 830015795490
Magento is a trademark of Magento Inc. Copyright © 2012 Magento Inc.
答案 0 :(得分:0)
此问题是由位于以下位置的错误文件引起的:
app/code/local/Mage/Adminhtml/Block/Sales/Order/Grid.php
在禁用或重新编译Magento编译器之前,删除或重命名文件无效。要禁用编译器,请从管理面板中选择System - >工具 - >汇编。选择禁用,完全禁用编译器或“运行编译过程”,以更新所有已编译的文件。
删除并更新编译器后,销售 - >订单网格视图已成功加载,没有任何问题。