从1.4升级到1.5后,Magento问题

时间:2011-02-14 08:32:07

标签: php magento magento-1.5

我已将Magento版本1.4.2.0升级到1.5.0.1。一切都很好,但点击wishlist后我得到以下错误。谁能告诉我这是什么问题?

Invalid method Mage_Wishlist_Model_Item::canConfigure(Array
(
)
)

Trace:
#0 [internal function]: Varien_Object->__call('canConfigure', Array)
#1 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Wishlist/Block/Render/Item/Price.php(47): Mage_Wishlist_Model_Item->canConfigure()
#2 /opt/lampp/htdocs/magento1501/app/design/frontend/base/default/template/wishlist/render/item/price.phtml(29): Mage_Wishlist_Block_Render_Item_Price->getCleanProductPriceHtml()
#3 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Block/Template.php(216): include('/opt/lampp/htdo...')
#4 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Block/Template.php(247): Mage_Core_Block_Template->fetchView('frontend/base/d...')
#5 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Block/Template.php(261): Mage_Core_Block_Template->renderView()
#6 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Block/Abstract.php(758): Mage_Core_Block_Template->_toHtml()
#7 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Wishlist/Block/Abstract.php(355): Mage_Core_Block_Abstract->toHtml()
#8 /opt/lampp/htdocs/magento1501/app/design/frontend/default/magik_computerstore/template/wishlist/sidebar.phtml(46): Mage_Wishlist_Block_Abstract->getPriceHtml(Object(Mage_Wishlist_Model_Item))
#9 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Block/Template.php(216): include('/opt/lampp/htdo...')
#10 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Block/Template.php(247): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#11 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Block/Template.php(261): Mage_Core_Block_Template->renderView()
#12 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Wishlist/Block/Customer/Sidebar.php(61): Mage_Core_Block_Template->_toHtml()
#13 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Block/Abstract.php(758): Mage_Wishlist_Block_Customer_Sidebar->_toHtml()
#14 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#15 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Block/Abstract.php(758): Mage_Core_Block_Text_List->_toHtml()
#16 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Block/Abstract.php(525): Mage_Core_Block_Abstract->toHtml()
#17 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Block/Abstract.php(476): Mage_Core_Block_Abstract->_getChildHtml('left', true)
#18 /opt/lampp/htdocs/magento1501/app/design/frontend/default/magik_computerstore/template/page/2columns-left.phtml(54): Mage_Core_Block_Abstract->getChildHtml('left')
#19 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Block/Template.php(216): include('/opt/lampp/htdo...')
#20 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Block/Template.php(247): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#21 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Block/Template.php(261): Mage_Core_Block_Template->renderView()
#22 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Block/Abstract.php(758): Mage_Core_Block_Template->_toHtml()
#23 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Model/Layout.php(529): Mage_Core_Block_Abstract->toHtml()
#24 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Controller/Varien/Action.php(389): Mage_Core_Model_Layout->getOutput()
#25 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Customer/controllers/AccountController.php(102): Mage_Core_Controller_Varien_Action->renderLayout()
#26 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Customer_AccountController->indexAction()
#27 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action->dispatch('index')
#28 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#29 /opt/lampp/htdocs/magento1501/app/code/core/Mage/Core/Model/App.php(340): Mage_Core_Controller_Varien_Front->dispatch()
#30 /opt/lampp/htdocs/magento1501/app/Mage.php(627): Mage_Core_Model_App->run(Array)
#31 /opt/lampp/htdocs/magento1501/index.php(80): Mage::run('', 'store')
#32 {main}

4 个答案:

答案 0 :(得分:4)

如前所述,这是您的自定义主题。你的app \ design \ frontend \ default \ template \ wishlist.phtml文件调用$ this-> getPriceHtml()并在需要产品时传递一个wishlist项目。

示例:

$this->getPriceHtml($_item);

当它期望:

$this->getPriceHtml($_item->getProduct());

但如果主题是为Magento的旧版本编写的,那么您可以放心更多错误。

答案 1 :(得分:0)

您的magik_computerstore主题可能编码为1.4,并且未针对1.5进行调整。如果它使调用不再合适,可能会发生这样的错误。我建议您与主题开发人员核实1.5兼容性。

答案 2 :(得分:0)

在使用从布局xml文件调用的已删除块方法进行升级时,我遇到了类似的问题。我删除了令人不安的XML配置中的行(top.links呈现失败)

答案 3 :(得分:0)

它是由app \ design \ frontend \ default \\ template \ wishlist中的sidebar.phtml引起的。

请与基本主题中的sidebar.phtml进行比较。我将我们的magento主题升级到1.5.0.1