Magento Forum

   
Sales Menu gives error in Admin Panel
 
PatrickCM
Member
 
Total Posts:  54
Joined:  2008-09-07
 

Hi,

the menu Invoices and Shipments give the following errors:

Invoice #100000020 | Paid (Invoice email not sent)
Order # 100006844 (Order confirmation email not sent)
Order Date Jan 13, 2009 9:53:12 AM
Order Status

Invalid method Mage_Sales_Model_Order::etStatusLabel(Array
(
)
)

#0 [internal function]: Varien_Object->__call(’etStatusLabel’, Array)
#1 /home/innovista/magento/app/design/adminhtml/default/default/template/sales/order/view/info.phtml(53): Mage_Sales_Model_Order->etStatusLabel()
#2 /home/innovista/magento/app/code/core/Mage/Core/Block/Template.php(144): include(’/home/innovista...’)
#3 /home/innovista/magento/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView(’adminhtml/defau...’)
#4 /home/innovista/magento/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView()
#5 /home/innovista/magento/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#6 /home/innovista/magento/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract->toHtml()
#7 /home/innovista/magento/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract->_getChildHtml(’order_info’, true)
#8 /home/innovista/magento/app/design/adminhtml/default/default/template/sales/order/invoice/view/form.phtml(29): Mage_Core_Block_Abstract->getChildHtml(’order_info’)
#9 /home/innovista/magento/app/code/core/Mage/Core/Block/Template.php(144): include(’/home/innovista...’)
#10 /home/innovista/magento/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView(’adminhtml/defau...’)
#11 /home/innovista/magento/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView()
#12 /home/innovista/magento/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#13 /home/innovista/magento/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract->toHtml()
#14 /home/innovista/magento/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract->_getChildHtml(’form’, true)
#15 /home/innovista/magento/app/code/core/Mage/Adminhtml/Block/Widget/Form/Container.php(103): Mage_Core_Block_Abstract->getChildHtml(’form’)
#16 /home/innovista/magento/app/design/adminhtml/default/default/template/widget/form/container.phtml(32): Mage_Adminhtml_Block_Widget_Form_Container->getFormHtml()
#17 /home/innovista/magento/app/code/core/Mage/Core/Block/Template.php(144): include(’/home/innovista...’)
#18 /home/innovista/magento/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView(’adminhtml/defau...’)
#19 /home/innovista/magento/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView()
#20 /home/innovista/magento/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#21 /home/innovista/magento/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#22 /home/innovista/magento/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Text_List->_toHtml()
#23 /home/innovista/magento/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract->toHtml()
#24 /home/innovista/magento/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract->_getChildHtml(’content’, true)
#25 /home/innovista/magento/app/design/adminhtml/default/default/template/page.phtml(73): Mage_Core_Block_Abstract->getChildHtml(’content’)
#26 /home/innovista/magento/app/code/core/Mage/Core/Block/Template.php(144): include(’/home/innovista...’)
#27 /home/innovista/magento/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView(’adminhtml/defau...’)
#28 /home/innovista/magento/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView()
#29 /home/innovista/magento/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#30 /home/innovista/magento/app/code/core/Mage/Core/Model/Layout.php(515): Mage_Core_Block_Abstract->toHtml()
#31 /home/innovista/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(326): Mage_Core_Model_Layout->getOutput()
#32 /home/innovista/magento/app/code/core/Mage/Adminhtml/controllers/Sales/Order/InvoiceController.php(213): Mage_Core_Controller_Varien_Action->renderLayout()
#33 /home/innovista/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(349): Mage_Adminhtml_Sales_Order_InvoiceController->viewAction()
#34 /home/innovista/magento/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php(143): Mage_Core_Controller_Varien_Action->dispatch(’view’)
#35 /home/innovista/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(174): Mage_Core_Controller_Varien_Router_Admin->match(Object(Mage_Core_Controller_Request_Http))
#36 /home/innovista/magento/app/Mage.php(447): Mage_Core_Controller_Varien_Front->dispatch()
#37 /home/innovista/magento/index.php(46): Mage::run()
#38 {main}

 
Magento Community Magento Community
Magento Community
Magento Community
 
herve@wsa
Member
 
Avatar
Total Posts:  48
Joined:  2008-07-22
United Kingdom
 

go in ../app/code/core/Mage/Sales/Model

and open the file Order.php, you or one of your programmer did modify this file and a mispelling came through..

search for public function etStatusLabel() in this file and correct the mispelling to be public function getStatusLabel.. should work better. Before doing this, backup this file anyway in order not to make the problem worse indeed.

Herve

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top