Unhandled Error!

Trying to get property of non-object

Document Product details page.
Document type CMS page
Line 2
Exception class Cms_ExecutionException

Code Highlight

<?
$product_unavailable = $product_unavailable || is_null($product->visibility_catalog);
?>
 
<? $this->render_block("breadcrumbs") ?>
 
<div class="container product-single">
  <div id="back-drop" class="hidden"></div>
 
  <?= open_form(array('class'=>'custom', 'onsubmit'=>'return false')) ?>
    <? if ($product_unavailable): ?>
      <h2>We are sorry, the product is unavailable.</h2>
    <? elseif (!$product): ?>
# Document Type
1 Product details page. CMS page