PHP warning

filesize(): stat failed for /home/xvcomunitamontan/public_html/protected/config/../documents/saved/2014/02/12/documento_1066.pdf

/home/xvcomunitamontan/public_html/protected/models/Document.php(93)

081     }
082 
083     public function getStatusArray()
084     {
085         return array(
086             self::DISABLED => 'Disabilitato',
087             self::ENABLED => 'Attivo'
088         );
089     }
090     
091     public function getDocumentSize()
092     {
093         return sprintf("%.2f", filesize($this->getPath())/1000.0);
094     }
095     
096     public function getStatusDesc()
097     {
098         if($this->status==self::ENABLED)
099             return "Attivo";
100         else
101             return "Disabilitato";
102     }
103     
104     public function beforeSave()
105     {

Stack Trace

#0
+
 /home/xvcomunitamontan/public_html/protected/models/Document.php(93): filesize("/home/xvcomunitamontan/public_html/protected/config/../documents...")
88         );
89     }
90     
91     public function getDocumentSize()
92     {
93         return sprintf("%.2f", filesize($this->getPath())/1000.0);
94     }
95     
96     public function getStatusDesc()
97     {
98         if($this->status==self::ENABLED)
#1
+
 /home/xvcomunitamontan/public_html/protected/views/document/view.php(19): Document->getDocumentSize()
14                         'publication_date_to' => array('label'=>$model->getAttributeLabel('publication_date_to'), 'type'=>'datetime', 'value' => $model->publication_date_to?strtotime($model->publication_date_to):null),
15                         'entity_id' => array('label'=>$model->getAttributeLabel('entity_id'), 'value' => $model->entity?$model->entity->name:Yii::app()->params['entity']),
16                         'proposer_service_id' => array('label'=>$model->getAttributeLabel('proposer_service_id'), 'value' => $model->proposer_service?$model->proposer_service->name:'n/d'),
17                         'document_type_id' => array('label'=>$model->getAttributeLabel('document_type_id'), 'value' => $model->document_type?$model->document_type->name:'n/d'),
18                         'description' => array('label' => $model->getAttributeLabel('description'), 'type'=>'html', 'value'=>$model->description),
19                         'download' => array('label'=>'File', 'type'=>'raw', 'value'=>'<a href="'.Yii::app()->createUrl('/document/download', array('id'=>$model->id)).'" target="_blank"><img src="'.Yii::app()->baseUrl.'/images/pdficon_large.png" /></a>  ('.$model->getDocumentSize().' KB)', 'visible'=>$model->sync_file==1)
20         ),
21     'nullDisplay'=>'n/d'
22 ));
23 ?>
#6
+
 /home/xvcomunitamontan/public_html/protected/controllers/DocumentController.php(81): CController->render("view", array("model" => Document))
76     
77     public function actionView()
78     {
79         $this->layout = "bootstrap";
80         $model = $this->loadModel();
81         $this->render('view', array('model'=>$model));            
82     }
83     
84     public function actionDownload()
85     {
86         $model = $this->loadModel();
2024-03-29 06:18:49 LiteSpeed Yii Framework/1.1.12