Unhandled Error!

Undefined index: buildcategory

Document layout:header_mainnav
Document type CMS partial
Line 14
Exception class Cms_ExecutionException

Code Highlight

<ul class="superMenu">
    <li class="home">
        <? $navItem = Cms_Page::create()->find_by_url($this->page->site_context_url); ?>
        <a href="<?=h(root_url($this->page->site_context_url))?>" <?if($this->page->url == $this->page->site_context_url){ echo 'class="active"';}?>>H</a>
    </li>
 
	<?foreach($pages[$this->page->site_context] as $item){?>
	<?
		$topUrl = $this->page->site_context_url.$item;
		$navItem = Cms_Page::create()->find_by_url($topUrl); 
 
		/**
		 * Work out active site section
# Document Type
3 layout:header_mainnav CMS partial
2 layout:header CMS partial
1 Products CMS template