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

FCPATH/modules/financial_budget/controllers/financial_budget.php [ 193 ]

188 		
189 		$document_id = $this->input->get('document');
190         if(!empty($document_id)) {
191 
192             $document = $this->financial_budget_model->getDocumentFile($document_id);
193             $file_download_name = $document->file_download_name ? $document->file_download_name : $document->subject;
194 
195             if (!empty($document->attach_file) && is_file('uploads/financial_budget/file/'.$document->attach_file)) {
196                 $file_path = './uploads/financial_budget/file/'.$document->attach_file;
197 
198                 $info = pathinfo($file_path);
  1. FCPATH/modules/financial_budget/controllers/financial_budget.php [ 193 ] » MY_Exceptions::error_handler(arguments)

  2. FCPATH/system/core/CodeIgniter.php [ 359 ] » financial_budget->download()

  3. FCPATH/index.php [ 226 ] » require_once(arguments)

Environment

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

FCPATH/modules/financial_budget/controllers/financial_budget.php [ 193 ]

188 		
189 		$document_id = $this->input->get('document');
190         if(!empty($document_id)) {
191 
192             $document = $this->financial_budget_model->getDocumentFile($document_id);
193             $file_download_name = $document->file_download_name ? $document->file_download_name : $document->subject;
194 
195             if (!empty($document->attach_file) && is_file('uploads/financial_budget/file/'.$document->attach_file)) {
196                 $file_path = './uploads/financial_budget/file/'.$document->attach_file;
197 
198                 $info = pathinfo($file_path);
  1. FCPATH/modules/financial_budget/controllers/financial_budget.php [ 193 ] » MY_Exceptions::error_handler(arguments)

  2. FCPATH/system/core/CodeIgniter.php [ 359 ] » financial_budget->download()

  3. FCPATH/index.php [ 226 ] » require_once(arguments)

Environment

ErrorException [ Warning ]: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/tijthailand.org/httpdocs/application/core/MY_Exceptions.php:198)

FCPATH/system/helpers/url_helper.php [ 542 ]

537 
538 		switch($method)
539 		{
540 			case 'refresh'	: header("Refresh:0;url=".$uri);
541 				break;
542 			default			: header("Location: ".$uri, TRUE, $http_response_code);
543 				break;
544 		}
545 		exit;
546 	}
547 }
  1. {PHP internal call} » MY_Exceptions::error_handler(arguments)

  2. FCPATH/system/helpers/url_helper.php [ 542 ] » header(arguments)

  3. FCPATH/modules/financial_budget/controllers/financial_budget.php [ 204 ] » redirect(arguments)

  4. FCPATH/system/core/CodeIgniter.php [ 359 ] » financial_budget->download()

  5. FCPATH/index.php [ 226 ] » require_once(arguments)

Environment