[solved] vmError: Couldnt create thumb, file not found

GK User
Tue Feb 21, 2012 6:34 pm
Hello everybody !

I don't know why ... but I have this error:

vmError: Couldnt create thumb, file not found /home/bijuland/public_html/images/stories/virtuemart/category/product_226.png

and all my folder have 0755 rights

What is wrong? :(
User avatar
Senior Boarder

GK User
Tue Feb 21, 2012 8:09 pm
Hi

Please check if you have GD library available on your host.
This is necessary to generate dynamic creation of images.

If so, try to change permissions to 777 instead.

Cheers
User avatar
Platinum Boarder

GK User
Tue Feb 21, 2012 10:02 pm
The GD Library is available and I change the image folder to 777 but the problem is same :(

any Idee ?
User avatar
Senior Boarder

GK User
Tue Feb 21, 2012 10:10 pm
Make sure your uploaded image name is lowercase and has no empty spaces.

Here is the function checking for image and throwing error
Code: Select all
      if (file_exists($fullSizeFilenamePath)) {
         if (!class_exists('Img2Thumb')) require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'img2thumb.php');
         $createdImage = new Img2Thumb($fullSizeFilenamePath, $width, $height, $resizedFilenamePath, $maxsize, $bgred, $bggreen, $bgblue);
         if($createdImage){
            return $this->file_url_folder_thumb.$this->file_name_thumb.'.'.$this->file_extension;
         } else {
            return 0;
         }
      } else {
         vmError('Couldnt create thumb, file not found '.$fullSizeFilenamePath);
         return 0;
      }


See you around...
User avatar
Platinum Boarder

GK User
Tue Feb 21, 2012 10:23 pm
I upload an image to a new product and it's ok but when did you see the page product I have the same error (but the picture it's ok)

With that code what I need to do ?

Put in the override.css ? Because it's not working
User avatar
Senior Boarder

GK User
Tue Feb 21, 2012 10:33 pm
No the code is part of vm that checks for image and when it cannot find it it throws that error msg.

Can you tell me the name of image you have uploaded from your computer.
User avatar
Platinum Boarder

GK User
Tue Feb 21, 2012 10:54 pm
http://biju-land.ro/images/stories/virt ... yshow5.jpg so barbyshow5.jpg

I don't know why ... but the product page is fine ... the only problem is the error ...

I need to remove this error and the product page will be fine!
User avatar
Senior Boarder

GK User
Wed Feb 22, 2012 8:36 am
the problem was picture of category. when I upload a new image it work fine.

Problem solve. Thanks a lot!
User avatar
Senior Boarder

GK User
Thu Feb 23, 2012 9:43 am
Glad to hear you have fixed it, see you around...
User avatar
Platinum Boarder

GK User
Fri Sep 05, 2014 2:30 pm
can you say me how disable this error report??

best regard
User avatar
Fresh Boarder

GK User
Thu Oct 02, 2014 3:51 pm
@tipoink check your image files for categories or product images.
User avatar
Platinum Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.