VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: amymattian on November 28, 2019, 11:12:50 AM

Title: Product images keep disappearing, why?
Post by: amymattian on November 28, 2019, 11:12:50 AM
Hello,

for some time already we have noticed some strange things happening with the product images. We import them to the stories/virtuemart/products folder, import the data with the CSVImproved component. The images seem to show up fine. Then after a few days, the images are not showing up anymore on the frontend.

I checked one example:

Product link:
www.raskaspari.fi/renkaat/riken-tl-on-off-ready-s-2-detail

The full image imported is:
www.raskaspari.fi/images/stories/virtuemart/product/riken-onoff-ready-s.jpg

The thumb url set in the import is:
www.raskaspari.fi/images/stories/virtuemart/product/resized/riken-onoff-ready-s.jpg

Both are in the correct folders.

On the product the images are as follows:

Used url   
images/stories/virtuemart/product/riken-onoff-ready-s.jpg
Used thumb url   
images/stories/virtuemart/product/resized/riken-onoff-ready-s.jpg

So exactly the same! Images are showing up correctly in the backend (see image). But not showing in the frontend:

https://www.raskaspari.fi/renkaat/riken-tl-on-off-ready-s-2-detail

What can be causing this issue? Any ideas?

Earlier I have noticed that Virtuemart adds numbers at the end of the image name and then cannot find the original image from the products and products/resized folders. But this time it seems to be that the images are exactly as in the original images, but still not showing up.


- Anne








Title: Re: Product images keep disappearing, why?
Post by: jenkinhill on November 28, 2019, 11:32:59 AM
Have you tried copying the images to images/virtuemart/product/  ?  It's just a thought. I have not used the images/stories/directory for a long time now.
Title: Re: Product images keep disappearing, why?
Post by: Studio 42 on November 29, 2019, 20:45:54 PM
Do you tested using protostar default template ?
Why you dont use auto resize ?
I see that you have a zoom and perhaps the code is obsolete ?
If you see the images in back-end then, most time, it's template related.
Title: Re: Product images keep disappearing, why?
Post by: GJC Web Design on November 29, 2019, 22:38:07 PM
the image source is showing

<img src="/components/com_virtuemart/assets/images/vmgeneral/empty.gif" alt="Ei kuvaa asetettu " class="medium-image" id="medium-image" data-pagespeed-url-hash="613883772" onload="pagespeed.CriticalImages.checkImageForCriticality(this);" style="font-family: Arial;">

so VM doesn't know about this or can't find this image .. what do u see on the admin product image tab?

what is there when you echo out the $this->product?