Unhandled Error!

Trying to get property of non-object

Document Product category page.
Document type CMS page POST action code
Line 10
Exception class Cms_ExecutionException

Code Highlight

$originaltitle = $this->page->title;
$originaltitle = strtolower($originaltitle);
$this->page->description =  'Shop for the latest travel accessories and essentials from the ' .$originaltitle. ' range at NearlyPacked.com. Delivery starts from just £2.99';
$this->page->title = $this->page->title.' | Category | Nearly Packed';
 
$this->data['og_description'] = $this->page->description;
if (($category->url_name =='essentials' | $category->url_name =='travel-tech' | $category->url_name =='lighting' | $category->url_name =='foodstuff' | $category->url_name =='driving')) {
	$this->data['canonical'] = 'http://www.nearlypacked.com'.$this->page->url.'/'.$category->url_name;
} else {
	$this->data['canonical'] = 'http://www.nearlypacked.com'.$this->page->url.'/'.strtolower($category->parent->name).'/'.$category->url_name;
}
 
 
# Document Type
1 Product category page. CMS page POST action code