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

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

41 			$parent = $this->slug;
42 			$page   = $this->pro;
43 
44 			$this->data->parent = R::findOne('kategori', 'slugen=?', array($parent) );
45 			$this->data->page = R::findOne('subtitles', 'slugen=?', array($page) );
46 			$this->data->pros = R::find('products', 'subparent=? order by ord asc', array($this->data->page->id) );
47 
48 			if( sizeof($this->data->pros) == 1 ){
49 				$this->data->grandpa = $this->data->parent;
50 				$this->data->parent = $this->data->page;
51 				$this->data->page = R::findOne('products', 'subparent=? order by ord asc', array($this->data->page->id) );
  1. APPPATH/classes/controller/page.php [ 46 ] » Kohana_Core::error_handler(arguments)

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

  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