2011-02-14 43 views
4

我已將Magento 1.4.2.0版升級到1.5.0.1。每件事情都可以,但在點擊願望清單後,我收到以下錯誤。誰能告訴我有什麼問題?從1.4更新到1.5後的Magento問題

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} 
+0

您使用的是默認主題嗎?還是基於1.4.2默認的自定義主題? – clockworkgeek 2011-02-14 12:56:40

回答

0

很可能您的magik_computerstore主題編碼爲1.4,並且尚未調整爲1.5。如果呼叫不再合適,可能會發生類似的錯誤。我會建議與您的主題開發人員檢查1.5兼容性。

0

我使用從佈局xml文件調用的刪除塊方法進行升級時遇到了類似的問題。我刪除了令人困擾的XML配置中的行(top.links呈現將失敗)

0

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

請與基本主題中的sidebar.phtml比較。我將我們的magento主題升級到1.5.0.1

4

如上所述,它是您的自定義主題。您的app \ design \ frontend \ default \ template \ wishlist.phtml文件調用$ this-> getPriceHtml()並在期望產品時傳遞願望清單項。

例子:

$this->getPriceHtml($_item); 

當預計:

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

不過你放心,如果主題是書面和舊版本的Magento有更多的錯誤。