ErrorException [ Warning ]: readfile(upload/office/1646/floorplans/NULL): failed to open stream: No such file or directory

APPPATH/classes/controller/office.php [ 131 ]

126             $this->response->headers(array(
127                 'Content-disposition' => 'attachment; filename='.$this->office->floorplans_file.'_'.$this->office->name,
128                 'Content-type' => 'application/pdf',
129                 ));
130 
131                 readfile($file_name);
132 
133             //$this->request->send_file($file_name);
134 
135         }
136 
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/controller/office.php [ 131 ] » readfile(arguments)

  3. {PHP internal call} » Controller_Office->action_download()

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

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

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

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

Environment