PHP warning

filesize(): stat failed for /var/www/html/themes/h5bp/_audio/ed_ed_tp0_01_11712_0c/ed_ed_tp0_01_11712_0cd.mp3

/var/www/html/protected/controllers/MatrixController.php(87)

75         
76         $this->redirect('index');
77     }
78 
79     public function actionDownloadAudio($id) {
80         $model = Takes::model()->findByPk($id);
81         if (!$model || !$model->HTML5url) {
82             throw new CHttpException(404,'The requested page does not exist.');
83         }
84 
85         header("Content-type:audio/wav");
86         header('Content-Disposition: attachment; filename="'.basename($model->HtmlPath).'"');
87         header('Content-Length: ' . filesize($model->HtmlPath));
88         readfile($model->HtmlPath);
89         Yii::app()->end();
90     }
91     
92     public function actionRefer($id) {
93         $model = $this->loadModel($id);
94         $model->unsetFilters();
95         
96         $this->redirect(array('detail', 'id' => $id, 'slug' => $model->Slug));
97     }
98     
99     public function actionSearch() {

Stack Trace

#0
+
 /var/www/html/protected/controllers/MatrixController.php(87): filesize("/var/www/html/themes/h5bp/_audio/ed_ed_tp0_01_11712_0c/ed_ed_tp0...")
82             throw new CHttpException(404,'The requested page does not exist.');
83         }
84 
85         header("Content-type:audio/wav");
86         header('Content-Disposition: attachment; filename="'.basename($model->HtmlPath).'"');
87         header('Content-Length: ' . filesize($model->HtmlPath));
88         readfile($model->HtmlPath);
89         Yii::app()->end();
90     }
91     
92     public function actionRefer($id) {
#10
+
 /var/www/html/index.php(15): CApplication->run()
10 
11 // run Yii app
12 //$env->showDebug(); // show produced environment configuration
13 require_once($env->yiiPath);
14 $env->runYiiStatics(); // like Yii::setPathOfAlias()
15 Yii::createWebApplication($env->configWeb)->run();
2024-03-28 01:15:16 Apache/2.2.15 (CentOS) Yii Framework/1.1.13