Unhandled Error!

Trying to get property of non-object

Document Order
Document type CMS page
Line 113
Exception class Cms_ExecutionException

Code Highlight

 
            </table>
            <div class="clear"></div>
 
        <? endif ?>
        <?
	$track = "track_order_" . $order->id;
	if(!isset($_SESSION[$track])){
		$_SESSION[$track] = 'tracked';
		echo "<img src='https://shareasale.com/sale.cfm?amount=" . ($order->subtotal - $order->discount) . "&tracking=" . $order->id . "&transtype=sale&merchantID=9896' width='1' height='1'>";
	}
?>
    </div>
# Document Type
1 Order CMS page