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

APPPATH/classes/Controller/Page.php [ 15 ]

10 			->order_by('date_created', 'DESC')
11 			->limit(2)
12 			->find_all();
13 
14 		$videos = json_decode(Youtube::factory($this->config['youtube_username'])->feed());
15 		$latest_video = $videos->feed->entry[0];
16 
17 		// Latest video
18 		$this->template->content = View::factory('front/page/home', array(
19 			'latest_video' => $latest_video
20 		));
  1. APPPATH/classes/Controller/Page.php [ 15 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Page->action_index()

  3. {PHP internal call} » Kohana_Controller->execute()

  4. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  5. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  6. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute(arguments)

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

Environment