cancel
Showing results for 
Search instead for 
Did you mean: 

Error message trying to access Admin panel

Error message trying to access Admin panel

Hi All,

 

Hope someone is able to help as after installing some patches, I am unable to use the Admin area (I can login) and get the below error message - this happened after installing some patches so my v1.9.1 has pratically been upgraded to v1.9.2

 

Sorry to post up the who error message, but I hope this is useful for the Magento expects to work out whats gone wrong.

 

Many Thanks in advance for any help.

 

 

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'SUM((IFNULL(main_table.base_total_invoiced, 0) - IFNULL(main_table.base_tax_invoiced, 0) - IFNULL(main_table.base_shipping_invoiced, 0) - (IFNULL(main_table.base_total_refunded, 0) - IFNULL(ma' in 'field list', query was: SELECT `SUM((IFNULL(main_table.base_total_invoiced, 0) - IFNULL(main_table.base_tax_invoiced, 0) - IFNULL(main_table.base_shipping_invoiced, 0) - (IFNULL(main_table.base_total_refunded, 0) - IFNULL(main_table.base_tax_refunded, 0) - IFNULL(main_table.base_shipping_refunded, 0))) * main_table`.`base_to_global_rate)` AS `lifetime`, `AVG((IFNULL(main_table.base_total_invoiced, 0) - IFNULL(main_table.base_tax_invoiced, 0) - IFNULL(main_table.base_shipping_invoiced, 0) - (IFNULL(main_table.base_total_refunded, 0) - IFNULL(main_table.base_tax_refunded, 0) - IFNULL(main_table.base_shipping_refunded, 0))) * main_table`.`base_to_global_rate)` AS `average` FROM `sales_flat_order` AS `main_table` WHERE (main_table.status NOT IN('canceled')) AND (main_table.state NOT IN('new', 'pending_payment'))

Trace:
#0 /public_html/includes/src/Varien_Db_Statement_Pdo_Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /public_html/includes/src/__default.php(65004): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /public_html/includes/src/__default.php(54337): Zend_Db_Statement->execute(Array)
#3 /public_html/includes/src/__default.php(55374): Zend_Db_Adapter_Abstract->query('SELECT `SUM((IF...', Array)
#4 /public_html/includes/src/__default.php(56234): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `SUM((IF...', Array)
#5 /public_html/includes/src/__default.php(54594): Varien_Db_Adapter_Pdo_Mysql->query('SELECT `SUM((IF...', Array)
#6 /public_html/includes/src/__default.php(32108): Zend_Db_Adapter_Abstract->fetchAll('SELECT `SUM((IF...', Array)
#7 /public_html/includes/src/__default.php(32734): Varien_Data_Collection_Db->_fetchAll('SELECT `SUM((IF...', Array)
#8 /public_html/includes/src/__default.php(31940): Mage_Core_Model_Resource_Db_Collection_Abstract->getData()
#9 /public_html/includes/src/Mage_Adminhtml_Block_Dashboard_Sales.php(65): Varien_Data_Collection_Db->load()
#10 /public_html/includes/src/__default.php(1987): Mage_Adminhtml_Block_Dashboard_Sales->_prepareLayout()
#11 /public_html/includes/src/__default.php(28243): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#12 /public_html/includes/src/Mage_Adminhtml_Block_Dashboard.php(54): Mage_Core_Model_Layout->createBlock('adminhtml/dashb...')
#13 /public_html/includes/src/__default.php(1987): Mage_Adminhtml_Block_Dashboard->_prepareLayout()
#14 /public_html/includes/src/__default.php(28243): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#15 /public_html/includes/src/__default.php(28259): Mage_Core_Model_Layout->createBlock('adminhtml/dashb...', 'dashboard')
#16 /public_html/includes/src/__default.php(28026): Mage_Core_Model_Layout->addBlock('adminhtml/dashb...', 'dashboard')
#17 /public_html/includes/src/__default.php(27992): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#18 /public_html/includes/src/__default.php(27997): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#19 /public_html/includes/src/__default.php(14024): Mage_Core_Model_Layout->generateBlocks()
#20 /public_html/includes/src/__default.php(13949): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#21 /public_html/includes/src/Mage_Adminhtml_Controller_Action.php(275): Mage_Core_Controller_Varien_Action->loadLayout(NULL, true, true)
#22 /public_html/app/code/core/Mage/Adminhtml/controllers/DashboardController.php(40): Mage_Adminhtml_Controller_Action->loadLayout()
#23 /public_html/includes/src/__default.php(14098): Mage_Adminhtml_DashboardController->indexAction()
#24 /public_html/includes/src/__default.php(18525): Mage_Core_Controller_Varien_Action->dispatch('index')
#25 /public_html/includes/src/__default.php(18055): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#26 /public_html/includes/src/__default.php(20872): Mage_Core_Controller_Varien_Front->dispatch()
#27 /public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#28 /public_html/index.php(87): Mage::run('', 'store')
#29 {main}

1 REPLY 1

Re: Error message trying to access Admin panel

Try clearing the cache using ssh and going to your public folder and running

 

rm -rf var/cache/*

It might be the database schema has been cached.

Problem solved? Click Accept as Solution!
www.iwebsolutions.co.uk | Magento Small Business Partner