image file not found in PhpThumb

Halo everybody,

I get problem in PhpThumb where I always get message image file not found when I try to get thumbnail image.

base work I get from this tutorial

my code:

where my mistakes?

Nb: sorry, if this problem have been answered, just point the link


be sure that the folder


exists and is writable

because you are trying to save in it, defined here

public function getimages()



$thumbFactory->adaptiveResize(200,  100)->save(Yii::getPathOfAlias('').'/'.$this->photo);


oh, my mistake

I have revise it like this

my folder is /var/www/coba/images/thumbs => ubuntu

public function getimages()



            $picture = $this->photo;

            $thumbFactory = PhpThumbFactory::create($picture);

            $thumbFactory->resize(200, 100)->save(Yii::getPathOfAlias('webroot.images.thumbs') . '/'. $this->photo);


but the problem is still same, from web log, I find the problem in here

$thumbFactory = PhpThumbFactory::create($picture); => highlighted

for get through this problem I try


public function actionCreate()


		$model=new DataMohon;

		// Uncomment the following line if AJAX validation is needed

		// $this->performAjaxValidation($model);







                            $model->photo->saveAs(Yii::app()->basePath . '/../images/' . $model->photo);


                            $thumbFactory = PhpThumbFactory::create($model->photo);

                            $thumbFactory->resize(200, 100)->save(Yii::getPathOfAlias('webroot.images') . '/'. $model->photo);









<b><?php echo CHtml::encode($data->getAttributeLabel('photo')); ?>:</b>

<?php echo CHtml::image(Yii::app()->baseUrl . '/images/thumbs' . $data->photo); ?>

<br />

the result is same too

Image file not found: Angelina_Jolie_-_Tomb_Raider_II.jpg

but weblog indicate problem in extension/phpthumb/

I don’t know it is mean I have get thorough problem in $thumbFactory = PhpThumbFactory::create($picture);

or just be fool around.

hi, solved ?

Same problem, but I can’t see messages, only blank page !!