title: Magento product category missing in breadcrumb
body: <p>On the home page of my Magento site, I used the following code to add a Latest Products block</p>
  
  <pre><code>{{block type="catalog/product_list" category_id="2" template="catalog/product/random.phtml"}}
  </code></pre>
  
  <p>When clicking on the latest products, some would work (the ones that worked showed a full breadcrumb) and others would lead to an error:
  Fatal error: Call to a member function getName() on a non-object in /var/www/vhosts/riderseyewear.net/httpdocs/app/design/frontend/fortium/default/template/page/1column-product.phtml on line 80</p>
  
  <p>The error is described more here <a href="http://i.imgur.com/RrG3ixU.png" rel="nofollow">http://i.imgur.com/RrG3ixU.png</a></p>
  
  <p>In that 1column-product.phtml file, I went to line 80 and changed</p>
  
  <pre><code>$currentcat = Mage::registry('current_category')-&gt;getName();
  </code></pre>
  
  <p>to</p>
  
  <pre><code>$currentcat = Mage::registry('current_product')-&gt;getName();
  </code></pre>
  
  <p>Changing this line removed the error. However, now the category name will not show up in the breadcrumbs when clicking on a product. The breadcrumb shows HOME/PRODUCT_NAME instead of HOME/CATEGORY_NAME/PRODUCT_NAME</p>
  
  <p>How can I get the full breadcrumb to show up while also not receiving the Fatal error?</p>