SQLSTATE [42S02]:找不到基表或视图:1146表'customgrid_grid_role'不存在

时间:2013-09-12 20:48:59

标签: magento module grid editor product

我已成功使用Enhanced Admin Grids进行magento扩展了很长一段时间,所以当我发现现在最新版本支持编辑数量时我自动尝试升级到0.8.9但是我保持尝试进入目录时出现此错误:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'buyahood_shopithoodies.customgrid_grid_role' doesn't exist

Trace:
#0 /home/buyahood/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/buyahood/public_html/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /home/buyahood/public_html/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /home/buyahood/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT customg...', Array)
#4 /home/buyahood/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(389): Zend_Db_Adapter_Pdo_Abstract->query('SELECTcustomg...', Array)
#5 /home/buyahood/public_html/lib/Zend/Db/Adapter/Abstract.php(734): Varien_Db_Adapter_Pdo_Mysql->query(Object(Varien_Db_Select), Array)
#6 /home/buyahood/public_html/app/code/community/BL/CustomGrid/Model/Mysql4/Grid.php(153): Zend_Db_Adapter_Abstract->fetchAll(Object(Varien_Db_Select))
#7 /home/buyahood/public_html/app/code/community/BL/CustomGrid/Model/Grid.php(2254): BL_CustomGrid_Model_Mysql4_Grid->getGridRoles('1')
#8 /home/buyahood/public_html/app/code/community/BL/CustomGrid/Model/Grid.php(217): BL_CustomGrid_Model_Grid->loadRolesConfig()
#9 /home/buyahood/public_html/app/code/community/BL/CustomGrid/Model/Grid.php(223): BL_CustomGrid_Model_Grid->_refreshConfig()
#10 /home/buyahood/public_html/app/code/core/Mage/Core/Model/Abstract.php(281): BL_CustomGrid_Model_Grid->_afterLoad()
#11 /home/buyahood/public_html/lib/Varien/Data/Collection.php(454): Mage_Core_Model_Abstract->afterLoad()
#12 /home/buyahood/public_html/app/code/community/BL/CustomGrid/Model/Mysql4/Grid/Collection.php(27): Varien_Data_Collection->walk(Array, Array)
#13 /home/buyahood/public_html/lib/Varien/Data/Collection/Db.php(536): BL_CustomGrid_Model_Mysql4_Grid_Collection->_afterLoad('afterLoad')
#14 /home/buyahood/public_html/app/code/community/BL/CustomGrid/Model/Observer.php(734): Varien_Data_Collection_Db->load()
#15 /home/buyahood/public_html/app/code/core/Mage/Core/Model/App.php(1303): BL_CustomGrid_Model_Observer->onControllerActionPreDispatch()
#16 /home/buyahood/public_html/app/code/core/Mage/Core/Model/App.php(1284): Mage_Core_Model_App->_callObserverMethod(Object(Varien_Event_Observer))
#17 /home/buyahood/public_html/app/Mage.php(416): Mage_Core_Model_App->dispatchEvent(Object(BL_CustomGrid_Model_Observer), 'onControllerAct...', Object(Varien_Event_Observer))
#18 /home/buyahood/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(505): Mage::dispatchEvent('controller_acti...', Array)
#19 /home/buyahood/public_html/app/code/core/Mage/Adminhtml/Controller/Action.php(152): Mage_Core_Controller_Varien_Action->preDispatch('controller_acti...', Array)
#20 /home/buyahood/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(409): Mage_Adminhtml_Controller_Action->preDispatch()
#21 /home/buyahood/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch()
#22 /home/buyahood/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match('index')
#23 /home/buyahood/public_html/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch(Object(Mage_Core_Controller_Request_Http))
#24 /home/buyahood/public_html/app/Mage.php(640): Mage_Core_Model_App->run()
#25 /home/buyahood/public_html/index.php(82): Mage::run(Array)
#26 {main}

请告知。

1 个答案:

答案 0 :(得分:-1)

此表应该是在升级期间创建的。看起来升级脚本没有运行。要再次触发它,请编辑core_resource表。搜索customgrid_setup行并在升级前将版本号重置为您的版本。之后,在后端刷新magento缓存。在下一页调用中,安装程序将重新运行。