Magento Exception Error: Invalid method Mage_Catalog_Block_Product_View_Type_Simple::displayProductStockStatus()

user3710700 picture user3710700 · Jun 15, 2014 · Viewed 25.7k times · Source

i tried to install a theme to my magento system and when i try to open a product page its shows me an error: Exception printing is disabled by default for security reasons.

please help me

the error:

    Invalid method Mage_Catalog_Block_Product_View_Type_Simple::displayProductStockStatus(Array
(
)
)

Trace:
#0 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/design/frontend/default/ma_erida/template/catalog/product/view/type/default.phtml(30): Varien_Object->__call('displayProductS...', Array)
#1 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/design/frontend/default/ma_erida/template/catalog/product/view/type/default.phtml(30): Mage_Catalog_Block_Product_View_Type_Simple->displayProductStockStatus()
#2 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/embxsto1/...')
#3 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#4 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#5 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#6 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#7 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml('product_type_da...', true)
#8 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/design/frontend/default/ma_erida/template/catalog/product/view.phtml(56): Mage_Core_Block_Abstract->getChildHtml('product_type_da...')
#9 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/embxsto1/...')
#10 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#11 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#12 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#13 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#14 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Text_List->_toHtml()
#15 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#16 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#17 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/design/frontend/default/ma_erida/template/page/1column.phtml(52): Mage_Core_Block_Abstract->getChildHtml('content')
#18 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/embxsto1/...')
#19 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#20 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#21 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#22 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Model/Layout.php(529): Mage_Core_Block_Abstract->toHtml()
#23 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(391): Mage_Core_Model_Layout->getOutput()
#24 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Cms/Helper/Page.php(132): Mage_Core_Controller_Varien_Action->renderLayout()
#25 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'no-route')
#26 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Cms/controllers/IndexController.php(75): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'no-route')
#27 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_Cms_IndexController->noRouteAction()
#28 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('noRoute')
#29 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#30 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch()
#31 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/Mage.php(640): Mage_Core_Model_App->run(Array)
#32 /home/embxsto1/domains/emb1.xstore.co.il/public_html/index.php(81): Mage::run('', 'store')
#33 {main}

Answer

Mohit Kumar Arora picture Mohit Kumar Arora · Jun 15, 2014

You can check what exception occurred in your Magento system by navigating through:

  • [Document_Root]/var/report folder and
  • Open the file # corresponding to exception number on your browser's screen.

or

you can enable exception printing for debugging purposes by:

  • Open [Document_Root]/errors folder
  • Rename local.xml.sample to local.xml

Both ways are helpful to trace and debug exceptions and errors in Magento.