cancel
Showing results for 
Search instead for 
Did you mean: 

Print order error

Print order error

Hi community,

 

I have an error on my magento site when a customer try to print an order :

Invalid method Mage_Page_Block_Html_Header::addJs(Array
(
    [0] => prototype/prototype.js
)
)

#0 [internal function]: Varien_Object->__call('addJs', Array)
#1 [internal function]: Mage_Page_Block_Html_Header->addJs('prototype/proto...')
#2 app/code/core/Mage/Core/Model/Layout.php(348): call_user_func_array(Array, Array)
#3 app/code/core/Mage/Core/Model/Layout.php(214): Mage_Core_Model_Layout->_generateAction(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#4 app/code/core/Mage/Core/Model/Layout.php(206): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#5 app/code/core/Mage/Core/Model/Layout.php(206): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#6 app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#7 app/code/core/Mage/Core/Controller/Varien/Action.php(269): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#8 app/code/core/Mage/Sales/Controller/Abstract.php(181): Mage_Core_Controller_Varien_Action->loadLayout('print')
#9 app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Sales_Controller_Abstract->printAction()
#10 app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('print')
#11 app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#12 app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#13 app/Mage.php(683): Mage_Core_Model_App->run(Array)
#14 index.php(93): Mage::run('', 'store')
#15 {main}

Magento version : 1.7.0.2

 

Could anyone help me please ?

1 REPLY

Re: Print order error

Hi @Tutut

 

Have you done customization in xml files to include prototype.js file?

Is there any custom extension which you are suing to print the order?

---
Problem Solved Click Accept as Solution!:Magento Community India Forum