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

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

How can I get the full breadcrumb to show up while also not receiving the Fatal error?

Thank you but I added the bit of code to the breadcrumbs.php file and it still has the same results. When clicking on a latest product from the home page, the breadcrumb still shows "home/product_name" instead of "home/category_name/product_name"
– user2220474Jul 18 '13 at 13:30

need to change only _prepareLayout function in breadcrumb page.copy all the code inside _prepareLayout() function from the above reference url.Also make sure breadcrumb working fine from category page product list/grid.
– monojitJul 18 '13 at 16:36

Here is the link to the site riderseyewear.net/index.php Try clicking on one of the Latest Products to see the error I'm receiving regarding line 80 in 1column-product.phtml this is the current line 80 $currentcat = Mage::registry('current_category')->getName();
– user2220474Jul 18 '13 at 16:59

Your breadcrumb working fine.Problem was on 1column-product.phtml page which u are using on product details page.Try once to change the template.I think your are using subcategory or may be product category is missing.try to get parent category name of current category.
– monojitJul 18 '13 at 18:38