Unhandled Error!

Trying to get property of non-object

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

Code Highlight

    </div>
    <?= close_form() ?>
</div>
<div id="myModal" class="reveal-modal small-12">
    <div class="contactForm row">
        <?php
        $pageUri = $this->page->url . "/" . $product->url_name;
        $redirect = root_url($pageUri . "?sent=1");
        $name = post('name', false);
        $email = post('email', false);
        $message = post('message', false);
        $phone = post('phone', false);
        ?>
# Document Type
1 Product details page. CMS page