Magento异常错误:无效的方法Mage_Catalog_Block_Product_View_Type_Simple :: displayProductStockStatus() [英] Magento Exception Error: Invalid method Mage_Catalog_Block_Product_View_Type_Simple::displayProductStockStatus()

查看:73
本文介绍了Magento异常错误:无效的方法Mage_Catalog_Block_Product_View_Type_Simple :: displayProductStockStatus()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的magento系统中安装一个主题 当我尝试打开产品页面时,它显示了一个错误: 出于安全原因,默认情况下禁用异常打印.

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.

请帮助我

错误:

    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}

推荐答案

您可以通过以下操作来检查Magento系统中发生了什么异常:

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

  • [Document_Root]/var/report 文件夹和
  • 在浏览器的屏幕上打开与异常编号对应的文件#.
  • [Document_Root]/var/report folder and
  • Open the file # corresponding to exception number on your browser's screen.

您可以通过以下方式启用用于调试目的的异常打印:

you can enable exception printing for debugging purposes by:

  • 打开 [Document_Root]/errors 文件夹
  • local.xml.sample 重命名为 local.xml
  • Open [Document_Root]/errors folder
  • Rename local.xml.sample to local.xml

这两种方法都有助于在Magento中跟踪和调试异常和错误.

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

这篇关于Magento异常错误:无效的方法Mage_Catalog_Block_Product_View_Type_Simple :: displayProductStockStatus()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆