VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: amymattian on March 12, 2019, 13:22:04 PM

Title: Image not found anymore, why?
Post by: amymattian on March 12, 2019, 13:22:04 PM
Hi,
I noticed that some product images are not found anymore. Example if original image name has been:
sample-image.jpg

And the image has been imported a second time to the shop, Virtuemart gives it another name:
sample-image2.jpg

Now, these copy-images are not all showing. We have not deleted any images. So my question is, has there been some change in the Virtuemart code, that would explain why some copy-images are no longer showing?

Also, how is this copy-process going in practice? Does the shop create a second image to the database, or use the original image?

Has anyone else had these strange image disappearances?

- Anne
Title: Re: Image not found anymore, why?
Post by: Jörgen on March 12, 2019, 14:42:17 PM
Yes the image path has been changed, no longer under images/stories/virtuemart .... now under images/virtuemart ...
The media descriptor stores the path to one image. This media descriptor can be used uses by several products.
When You upload an image with the same name as an already loaded image it appends the category as many times as needed to get a new unique name.

Jörgen @ Kreativ Fotografi
Title: Re: Image not found anymore, why?
Post by: amymattian on April 10, 2019, 12:30:31 PM
Hi,
thanks for the reply. This issue is not caused by this folder-change. We are stil using the old folder path. But what we are wondering if this can be caused by the fact that we are using 2 "Finnish" letters called ä and ö. These are in the image-names also. The problems seems to be for those images that have these letters. Can this be the problem?

- Anne
Title: Re: Image not found anymore, why?
Post by: Jörgen on April 10, 2019, 12:56:38 PM
It is plausible, replace and test. ' ' is often also a bad character to use.

Jörgen @ Kreativ Fotografi