Error [ 0 ]: Call to a member function getFoto() on null

APPPATH/classes/Controller/Site.php [ 879 ]

874          
875             $view->set('galeria',$galeria)
876                  ->set('midias',$midias);
877             
878             
879             $image_attr = getimagesize('.'.$midias[0]->getFoto('m'));
880             
881             $this->template->keywords = $keywords;
882             $this->template->description = strip_tags($description);
883             $this->template->og_image = URL::site($midias[0]->getFoto('m'),TRUE);
884             $this->template->og_image_width = $image_attr[0];
  1. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Site->action_galeria()

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

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

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

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

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

Environment