Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

shopping Cart not working
 
tapebrothers
Sr. Member
 
Total Posts:  96
Joined:  2008-05-14
 

I went to add product cart and got this error. Any help?

Recoverable Error: Argument 1 passed to Mage_Catalog_Helper_Image::init() must be an instance of Mage_Catalog_Model_Product, null given, called in /chroot/home/camoduct/camoducttape.com/html/app/design/frontend/default/default/template/checkout/cart.phtml on line 76 and defined in /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Catalog/Helper/Image.php on line 58 #0 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Catalog/Helper/Image.php(58): mageCoreErrorHandler(4096, ‘Argument 1 pass...’, ‘/chroot/home/ca...’, 58, Array) #1 /chroot/home/camoduct/camoducttape.com/html/app/design/frontend/default/default/template/checkout/cart.phtml(76): Mage_Catalog_Helper_Image->init(NULL, ‘thumbnail’) #2 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Core/Block/Template.php(138): include(’/chroot/home/ca...’) #3 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Core/Block/Template.php(170): Mage_Core_Block_Template->fetchView(’frontend/defaul...’) #4 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Core/Block/Template.php(187): Mage_Core_Block_Template->renderView() #5 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Core/Block/Abstract.php(636): Mage_Core_Block_Template->_toHtml() #6 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Core/Block/Text/List.php(37): Mage_Core_Block_Abstract->toHtml() #7 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Core/Block/Abstract.php(636): Mage_Core_Block_Text_List->_toHtml() #8 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Core/Block/Abstract.php(495): Mage_Core_Block_Abstract->toHtml() #9 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Core/Block/Abstract.php(446): Mage_Core_Block_Abstract->_getChildHtml(’content’, true) #10 /chroot/home/camoduct/camoducttape.com/html/app/design/frontend/default/default/template/page/1column.phtml(47): Mage_Core_Block_Abstract->getChildHtml(’content’) #11 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Core/Block/Template.php(138): include(’/chroot/home/ca...’) #12 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Core/Block/Template.php(170): Mage_Core_Block_Template->fetchView(’frontend/defaul...’) #13 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Core/Block/Template.php(187): Mage_Core_Block_Template->renderView() #14 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Core/Block/Abstract.php(636): Mage_Core_Block_Template->_toHtml() #15 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Core/Model/Layout.php(509): Mage_Core_Block_Abstract->toHtml() #16 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Core/Controller/Varien/Action.php(320): Mage_Core_Model_Layout->getOutput() #17 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Checkout/controllers/CartController.php(122): Mage_Core_Controller_Varien_Action->renderLayout() #18 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Core/Controller/Varien/Action.php(343): Mage_Checkout_CartController->indexAction() #19 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(144): Mage_Core_Controller_Varien_Action->dispatch(’index’) #20 /chroot/home/camoduct/camoducttape.com/html/app/code/core/Mage/Core/Controller/Varien/Front.php(168): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #21 /chroot/home/camoduct/camoducttape.com/html/app/Mage.php(420): Mage_Core_Controller_Varien_Front->dispatch() #22 /chroot/home/camoduct/camoducttape.com/html/index.php(46): Mage::run() #23 {main}

thank you shock

 
Magento Community Magento Community
Magento Community
Magento Community
 
chiaraweb
Guru
 
Avatar
Total Posts:  721
Joined:  2008-03-21
Aviano ~ Italy
 

Hi

it seems a problem of template

take a look in
shop/app/design/frontend/default/default/template/checkout

if all files have the correct extensions .phtml

for a fast job download a new zip/tar folder of magento e copy another time the checkout folder entirely

good luck

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top