Unhandled Error!

Trying to get property of non-object

Document Product
Document type CMS page
Line 2
Exception class Cms_ExecutionException

Code Highlight

<? $this->render_partial('site:breadcrumbs'); ?>
<? $categories = $product->categories; ?>
 
<div class="container wide pagearea">
    <section class="snippet">
        <div class="container narrow">
 
			<div class="row">
				<div class="span18">
					<h1 class="large"><?= $product->title; ?></h1>
					<a class="catlink" href="/category/<?= $categories->url_name; ?>">View all <?= $categories->title; ?></a>
				</div>
				<div class="span10 pull-right">
# Document Type
1 Product CMS page