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

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

214 	{
215 
216 		$ln = $this->lang;
217 		$page   = R::findOne( "kategori", "slugen=?", array($this->id) );
218 
219 		$this->data->title = json_decode($page->title)->$ln;
220 
221 		if($page->slugen == "news"){
222 			$this->news($page);
223 			return;
224 		}
  1. APPPATH/classes/controller/page.php [ 219 ] » Kohana_Core::error_handler(arguments)

  2. {PHP internal call} » Controller_Page->action_stat()

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

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

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

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

Environment