Fatal error: Class ‘Mage_Review_Helper_Product’ not found in /www/shop/app/code/core/Mage/Core/Model/App.php on line 779
When I searched in my old backup I found this file missing: /app/code/core/Mage/Review/Helper/Product.php
When I put it there it says:
Fatal error: Call to undefined method Mage_Catalog_Helper_Product::getPriceHtml() in /www/shop/app/design/frontend/default/default/template/catalog/product/homepage.phtml on line 39
This line is for example triggering the error:
<? echo $this->helper('catalog/product')->getPriceHtml($_product) ?>
It seems like this getPriceHtml function does not exist anymore in 1.1 - yet I have this stuff in my templates..
What shall I do? It is all over the place?
Doesn’t make a difference if someone is using a modern theme or not. This is a helper function that is part of the base code of 1.0x. If it is missing then it will possibly break a lot of other user created themes. I don’t know why they would remove this function (most frameworks when depreciating something , [are they are depreciating this and other functions?] will allow the use the same function but print a warning or provide the functionality of the call but calling the newer system function and warn that this function will be removed in succeeding version.) If this is to be a permanent removal this may cause a headache even if modern is not supported right now. I doubt it is going to removed. I will have to look at their code to see what they are doing instead. I know I use this call several times in a theme we are designing for site right now.
If you are using the modern theme, do a global search and replace for the theme folder ‘modern’ in ‘app/design/frontend’ for the following 2 functions.
Ok, I still have this error when trying to put a product into the cart :(
Is this the code that needs to be adapted in cart.phtml? Can you post or attach the complete code of a working cart.phtml?
Thanks.
Recoverable Error: Argument 1 passed to Mage_Catalog_Helper_Image::init() must be an instance of Mage_Catalog_Model_Product, null given, called in /www/shop/app/design/frontend/default/default/template/checkout/cart.phtml on line 76 and defined in /www/shop/app/code/core/Mage/Catalog/Helper/Image.php on line 58 Trace: #0 /www/shop/app/code/core/Mage/Catalog/Helper/Image.php(58): mageCoreErrorHandler(4096, 'Argument 1 pass...', '/www/shop...', 58, Array) #1 /www/shop/app/design/frontend/default/default/template/checkout/cart.phtml(76): Mage_Catalog_Helper_Image->init(NULL, 'thumbnail') #2 /www/shop/app/code/core/Mage/Core/Block/Template.php(138): include('/www/shop...') #3 /www/shop/app/code/core/Mage/Core/Block/Template.php(170): Mage_Core_Block_Template->fetchView('frontend/defaul...') #4 /www/shop/app/code/core/Mage/Core/Block/Template.php(187): Mage_Core_Block_Template->renderView() #5 /www/shop/app/code/core/Mage/Core/Block/Abstract.php(580): Mage_Core_Block_Template->_toHtml() #6 /www/shop/app/code/core/Mage/Core/Block/Text/List.php(37): Mage_Core_Block_Abstract->toHtml() #7 /www/shop/app/code/core/Mage/Core/Block/Abstract.php(580): Mage_Core_Block_Text_List->_toHtml() #8 /www/shop/app/code/core/Mage/Core/Block/Abstract.php(445): Mage_Core_Block_Abstract->toHtml() #9 /www/shop/app/code/core/Mage/Core/Block/Abstract.php(408): Mage_Core_Block_Abstract->_getChildHtml('content', true) #10 /www/shop/app/design/frontend/default/default/template/page/1column.phtml(47): Mage_Core_Block_Abstract->getChildHtml('content') #11 /www/shop/app/code/core/Mage/Core/Block/Template.php(138): include('/www/shop...') #12 /www/shop/app/code/core/Mage/Core/Block/Template.php(170): Mage_Core_Block_Template->fetchView('frontend/defaul...') #13 /www/shop/app/code/core/Mage/Core/Block/Template.php(187): Mage_Core_Block_Template->renderView() #14 /www/shop/app/code/core/Mage/Core/Block/Abstract.php(580): Mage_Core_Block_Template->_toHtml() #15 /www/shop/app/code/core/Mage/Core/Model/Layout.php(508): Mage_Core_Block_Abstract->toHtml() #16 /www/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(320): Mage_Core_Model_Layout->getOutput() #17 /www/shop/app/code/core/Mage/Checkout/controllers/CartController.php(125): Mage_Core_Controller_Varien_Action->renderLayout() #18 /www/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(343): Mage_Checkout_CartController->indexAction() #19 /www/shop/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(144): Mage_Core_Controller_Varien_Action->dispatch('index') #20 /www/shop/app/code/core/Mage/Core/Controller/Varien/Front.php(168): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #21 /www/shop/app/Mage.php(420): Mage_Core_Controller_Varien_Front->dispatch() #22 /www/shop/index.php(40): Mage::run() #23 {main}
In my case the checkout doesn’t work cause there’s a new folder “widget” in template/customer which doesn’t get included, you can see the error message while viewing rendered source in browser…