Unhandled Error!

Trying to get property of non-object

Document Product Page
Document type CMS page
Line 2
Exception class Cms_ExecutionException

Code Highlight

<?
$first = preg_replace('/\s.*/','',$product->name);
$last = preg_replace("/$first/",'',$product->name);
$dollars = preg_replace('/\..*/','',$product->price);
$cents = preg_replace('/.*\./','',$product->price);
?>
<div class="page_header_image"><!-- --></div>
<div class="column pad">
  <div class="left">
  <h2 class="fontsize34"><?=$first?><span style="color:#999"><?=$last?></span></h2>
  <h3 class="fontsize22">Roastmaster's Notes</h3>
  <?=$product->description?>
  <a class="button" href="<?=site_url('shop')?>">Back to Store</a>
# Document Type
1 Product Page CMS page