Unhandled Error!

Trying to get property of non-object

Document Category
Document type CMS page
Line 1
Exception class Cms_ExecutionException

Code Highlight

<? $has_subcategories = count(Shop_Category::get_children_ids($category->id)); ?>
<div class="panel">
	<h1><?= $category->name ?></h1>
	<?= $category->description ?>
</div>
 
<? if ($has_subcategories): ?>
	<? $this->render_partial('shop:subcategory:list', array('parent' => $category)) ?>
<? endif ?>
<? if ($category->list_products()->count()): ?>
<div id="shop_category" data-ls-partial="shop:category">
	<? $this->render_partial('shop:category') ?>
</div>
# Document Type
1 Category CMS page