Unhandled Error!

Trying to get property of non-object

Document Category
Document type CMS page
Line 23
Exception class Cms_ExecutionException

Code Highlight

<!--//.breadcrumb-->
 
<?
// get parent category url_name
if ($category->parent) {
  $parent_cat = $category->get_parent();
  $top_level_category_url_name = $parent_cat->url_name;
} else {
  $top_level_category_url_name = $category->url_name;
}
?>
 
<div class="content-left <?= $top_level_category_url_name ?>">
# Document Type
1 Category CMS page