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

Left Catalog Navigation error
 
Jake
Jr. Member
 
Total Posts:  14
Joined:  2008-03-05
 

I am receiving this error everytime I try and add the left navigation to my catalog pages:
exception ‘Mage_Core_Exception’ with message ‘Cannot retrieve current category object’ in /var/www/html/vhosts/jsmith/store/app/Mage.php:346

<reference name="left">
            <
block type="catalog/navigation" name="catalog.navigation.left" template="catalog/navigation/left.phtml"/>
        </
reference>

Am I forgetting something here?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

Add this code to the top of catalog/navigation/left.phtml:

<?php if (!Mage::registry('current_category')) return ?>
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top