some thumbnails aren't showing on the frontend and there a no pictues visible in

Started by Ruup, January 22, 2016, 15:10:16 PM

Previous topic - Next topic

Ruup

Hi,

just installed the newest version of VM with Joomla! 3.4.8.
I noticed that some thumbnails aren't showing on the frontend and there a no pictues visible in the backend. See my attachment

Hope you can help me.
Greetings

Studio 42

Is this visible in media list of VM ? Perhaps this get removed but not corretly ?

jenkinhill

If you save & close the product after adding additional images are the thumbnails there when you re-open the page?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Ruup

@ studio 42 Yes, the product image is found at images/stories/virtuemart/product.
@ Jenkinhill I deleted the pictures at the article page and uploaded them again at the bottom of the page and saved it, but no result.
Also tried some different other pictures same there, no result.
I checked it with Firebug and this comes out : <img src="/"> Why is there a slash instead of a picture source?

Thanks in advance

Studio 42

Your images filename is perhaps not valid ?
Try to only use [az-_01].png or .jpg  as name then you have not such problems mostly.
Try in vm Admin>shop> Media Files to use the
   "Synchronize media to VirtueMart" button
or this link YOURSITE/administrator/index.php?option=com_virtuemart&view=media.
This give certainly some errors.

If you need to remove your medias, i have wrote a free tool, that you can download here :
http://shop.st42.fr/en/products/virtuemart-media-folder-clear.htm and click the 2 butoon to remove unrecognised images.
PLEASE NOTE : this remove the files and the DB reference errors, so if you do it, this can remove some reference or file you don't want, so do a backup before !!! But after that you have  a clean image folder and meida database reference  ;)



Ruup

I deleted the image from the server and uploaded it again.
The thumbnail is not visible but the product image is. See attachment. The problem does not occur with any product.
it seems there is a problem with some thumbs.

Also tried to synchronize the media with VM, no result.

Jörgen


Have You checked that there are no strange characters or blanks in the filename ?

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Ruup

#7
Tried to rename the file of the thumb to a name without underscores etc. and uploaded it, but no result.
Also tried to pick another image to see if it makes a diffrence, but also no result.

EDIT: found out that the image is not created in the resize folder. Dynamic resize is on.

jjk

#8
If you have a test installation, you may try to update to VM 3.0.12 and then replace the file mediahandler.php (rename the current one to something like mediahandler.php.bak first, so you have a backup of that file) with this version: http://dev.virtuemart.net/projects/virtuemart/repository/revisions/9079/entry/trunk/virtuemart/administrator/components/com_virtuemart/helpers/mediahandler.php
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Ruup

#9
Mediahandler.php is not in the helpers folder.
Added the file and it's not working

EDIT: Added different images but VM is renaming them all to the same name. See attachement.

jjk

Quote from: Ruup on January 23, 2016, 17:48:48 PM
Mediahandler.php is not in the helpers folder.
It must be there. Probably you were looking in the frontend 'helpers' folder. The file mediahandler.php is located at:
yourdomain/administrator/components/com_virtuemart/helpers/mediahandler.php
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Ruup

Okay, replaced the file without result.

I have deleted the whole site and uploaded it again from a backup file from akeeba, but the same problem remains.

jjk

Are you still using VM3.0.11.2? The pre-release version of 3.0.12 still had such issues, too. But I can't reproduce it with the official 3.0.12 release with or without a fix contained in the mediahandler.php I linked above.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Ruup

I updated VM via the extension/update part of the backend.
I've not downloaded the file from the official website. Is this the old pre release version then?

jjk

Quote from: Ruup on January 23, 2016, 23:08:02 PM
I updated VM via the extension/update part of the backend.
I've not downloaded the file from the official website.
The 3.012 version on the VM Homepage should be the same as the 3.0.12 at http://dev.virtuemart.net/projects/virtuemart/files.
However, after the release of 3.0.12 there was a fix in the mediahandler.php related to the thumbnail url which is included in this version of mediahandler.php:
http://dev.virtuemart.net/projects/virtuemart/repository/revisions/9079/entry/trunk/virtuemart/administrator/components/com_virtuemart/helpers/mediahandler.php.
If you try that one, please clear your Joomla and browser cache.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations