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

APPPATH/views/productDetail.php [ 3 ]

1 <?php 
2 	$ln = $data->lang;
3 	$p = json_decode($data->page->photos); 
4 	$pp = ( sizeof($p) ) ? $p[0]->name : ""; 
5 	$tit = json_decode($data->page->title); 
6 	$cont = json_decode($data->page->content);
7 	$singlepage = isset($data->singlepro);
8 
  1. APPPATH/views/productDetail.php [ 3 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)

  3. SYSPATH/classes/kohana/view.php [ 343 ] » Kohana_View::capture(arguments)

  4. SYSPATH/classes/kohana/view.php [ 228 ] » Kohana_View->render()

  5. APPPATH/classes/controller/base.php [ 109 ] » Kohana_View->__toString()

  6. {PHP internal call} » Controller_Base->after()

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

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

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

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

Environment