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

APPPATH/classes/Model/Module/Pricelist.php [ 29 ]

24 	{
25 		$appartments = Kohana::cache('dnav_appartments');
26 		if (!$appartments) {
27 			$request = new Request(self::$dnav_url . self::$dnav_assets_path . 'intApt.json');
28 			$response = $request->execute();
29 			$appartments = json_decode($response->body())->apts;
30 		
31 			Kohana::cache('dnav_appartments', $appartments, 600);
32 		}
33 		
34 		return $appartments;
  1. APPPATH/classes/Model/Module/Pricelist.php [ 29 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/views/public/modules/pricelist.php [ 21 ] » Model_Module_Pricelist::read_appartments()

  3. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

  4. SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture(arguments)

  5. MODPATH/avo/classes/View.php [ 14 ] » Kohana_View->render()

  6. APPPATH/views/public/page.php [ 8 ] » View->__toString()

  7. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

  8. SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture(arguments)

  9. MODPATH/avo/classes/View.php [ 14 ] » Kohana_View->render()

  10. APPPATH/views/public/layout.php [ 114 ] » View->__toString()

  11. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

  12. SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture(arguments)

  13. SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()

  14. MODPATH/avo/classes/AVO/Controller.php [ 131 ] » Kohana_Controller_Template->after()

  15. APPPATH/classes/Controller/Abstract/Public.php [ 75 ] » AVO_Controller->after()

  16. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Controller_Abstract_Public->after()

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

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

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

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

  21. DOCROOT/index.php [ 117 ] » Kohana_Request->execute()

Environment