ErrorException [ Notice ]: Trying to get property 'id' of non-object

APPPATH/classes/controller/page.php [ 161 ]

156 	    		if($value->id == $subBean->id)$html .= ' open';
157 	    		$html .= '">';
158 	    		foreach ($subArr[$value->id] as $k => $v) {
159 	    			$link = $ln . "/productdetail/" . $value->slugen . "/" . $v->slugen;
160 	    			$html .= '<li><a href="'.$link.'" class="animatable-fast sublink';
161 	    			if($pro->id == $v->id) $html .= ' selectedpro';
162 	    			$html .= '">';
163 	    			$html .= json_decode($v->title)->$ln.'</a></li>';
164 	    		}
165 	    		$html .= "</ul>";
166 	    	}
  1. APPPATH/classes/controller/page.php [ 161 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/controller/page.php [ 95 ] » Controller_Page->getLeft(arguments)

  3. {PHP internal call} » Controller_Page->action_productdetail()

  4. SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)

  5. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  6. SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)

  7. DOCROOT/index.php [ 111 ] » Kohana_Request->execute()

Environment