CException

Image file not found: /storage/home/srv10930/ht-olimp43/uploads/photos/01.04.2013/515985a10da24.jpg

/storage/home/srv10930/ht-olimp43/protected/extensions/EPhpThumb/EPhpThumb.php(59)

47     /**
48      * Creates a new phpThumb object.
49      * @param string $filePath the image file path.
50      * @return PhpThumb object
51      */
52     protected static function thumbFactory($filePath)
53     {
54         try{
55             return PhpThumbFactory::create($filePath,self::$_phpThumbOptions);
56         }
57         catch (Exception $e)
58         {
59             throw new CException($e->getMessage(),$e->getCode());
60         }
61     }
62 }
63 ?>

Stack Trace

#0
+
 /storage/home/srv10930/ht-olimp43/protected/extensions/EPhpThumb/EPhpThumb.php(44): EPhpThumb::thumbFactory("/storage/home/srv10930/ht-olimp43/uploads/photos/01.04.2013/5159...")
39      * @param string $filePath the image file path.
40      * @return PhpThumb object
41      */
42     public function create($filePath)
43     {
44         return new EThumbnail(EPhpThumb::thumbFactory($filePath));
45     }
46         
47     /**
48      * Creates a new phpThumb object.
49      * @param string $filePath the image file path.
#1
+
 /storage/home/srv10930/ht-olimp43/protected/components/FileContents.php(6): EPhpThumb->create("/storage/home/srv10930/ht-olimp43/uploads/photos/01.04.2013/5159...")
01 <?php
02 
03 class FileContents extends CApplicationComponent {
04     public function displayImage($itemPath, $itemName) {
05         header('Content-Disposition: attachment; filename=' . $itemName);
06         $thumb = Yii::app() -> phpThumb -> create($itemPath);
07         $thumb -> show();
08     }
09 
10     public function displayThumbnail($itemPath, $itemName) {
11         header('Content-Disposition: attachment; filename=' . $itemName);
#2
+
 /storage/home/srv10930/ht-olimp43/protected/controllers/FilesController.php(14): FileContents->displayImage("/storage/home/srv10930/ht-olimp43/uploads/photos/01.04.2013/5159...", "DSC_3168.jpg")
09     public function actionDisplayImage($model, $id) {
10         set_time_limit(0);
11         $model = strtoupper(substr($model, 0, 1)) . substr($model, 1);
12         $modelItem = CActiveRecord::model($model) -> findByPk($id);
13         if ($modelItem != NULL)
14             Yii::app() -> FileContents -> displayImage(Yii::getPathOfAlias('webroot') . '/uploads/' . strtolower(substr($model, 0, 1)) . substr($model, 1) . '/' . $modelItem -> image_path, $modelItem -> image_name);
15         else
16             throw new CHttpException(404, 'The specified page cannot be found.');
17     }
18 
19     public function actionDisplayThumbnail($model, $id) {
2024-03-29 01:43:17 Apache Yii Framework/1.1.12