VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Ruup on January 22, 2016, 15:10:16 PM

Title: some thumbnails aren't showing on the frontend and there a no pictues visible in
Post by: Ruup on January 22, 2016, 15:10:16 PM
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
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Studio 42 on January 22, 2016, 17:42:11 PM
Is this visible in media list of VM ? Perhaps this get removed but not corretly ?
Title: Re: Re: Please test our new vm3.0.11.2
Post by: jenkinhill on January 22, 2016, 18:28:31 PM
If you save & close the product after adding additional images are the thumbnails there when you re-open the page?
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Ruup on January 22, 2016, 19:20:59 PM
@ 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
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Studio 42 on January 22, 2016, 22:56:18 PM
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  ;)


Title: Re: Re: Please test our new vm3.0.11.2
Post by: Ruup on January 23, 2016, 12:06:41 PM
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.
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Jörgen on January 23, 2016, 13:12:12 PM

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

regards

Jörgen @ Kreativ Fotografi
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Ruup on January 23, 2016, 14:50:39 PM
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.
Title: Re: Re: Please test our new vm3.0.11.2
Post by: jjk on January 23, 2016, 17:34:46 PM
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
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Ruup on January 23, 2016, 17:48:48 PM
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.
Title: Re: Re: Please test our new vm3.0.11.2
Post by: jjk on January 23, 2016, 19:44:52 PM
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
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Ruup on January 23, 2016, 20:52:21 PM
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.
Title: Re: Re: Please test our new vm3.0.11.2
Post by: jjk on January 23, 2016, 21:28:53 PM
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.
Title: Re: Re: Please test our new vm3.0.11.2
Post by: 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. Is this the old pre release version then?
Title: Re: Re: Please test our new vm3.0.11.2
Post by: jjk on January 24, 2016, 00:35:06 AM
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.
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Ruup on January 24, 2016, 11:44:28 AM
I am using version 3.0.12.
Tested with the mediahandler.php file and cleared cache, but no result.

Is there another way that you guys can have a look at it?
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Ruup on January 24, 2016, 11:56:33 AM
I found the problem!

The path of the thumbnail was like this: (standaard URL) images/stories/virtuemart/product/resized/maasgrind-2-5_220x220.jpg
Deleted the ''(standard url)'' part and it works!
I don't know how it gets there.

Thank you all for your help
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Ruup on January 24, 2016, 22:31:36 PM
Not the whole problem is solved.
Trying to add an image to the product, but no path to the small image is made, see attachment
If i upload the small image in the /resized folder en manually make the path to the image it works.
Why doesn't VM make the path by itself?
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Studio 42 on January 25, 2016, 09:31:40 AM
Quote from: Ruup on January 24, 2016, 22:31:36 PM
Not the whole problem is solved.
Trying to add an image to the product, but no path to the small image is made, see attachment
If i upload the small image in the /resized folder en manually make the path to the image it works.
Why doesn't VM make the path by itself?
Have you check your folders rights ?
If in the config, dynamic thumbnails is checked, then the thumbs should always be here.
And if you tested my tools, was some error found ?
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Ruup on January 28, 2016, 20:39:52 PM
It says ''select type of media''
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Studio 42 on January 28, 2016, 23:47:06 PM
If you use my tool, you need to select first the filter 'type' of media(product, category...).
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Ruup on January 30, 2016, 13:49:18 PM
Hi,

i checked for errors and this came out. (see attachment).
what does it say?
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Studio 42 on January 30, 2016, 19:09:24 PM
This are all the considerate obselete files
So else you have change some settings ni your shop, or all this are obselete and no relation is found in your shop with this images.
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Ruup on January 31, 2016, 14:04:05 PM
Hi,

today i was testing some things.
Removed all the product images of a product and added some new ones.
there is something weird going on.
The first image i added works fine with the thumb and the big image. The second one, the thumb isn't working again. Also there's no thumb in the /resized folder.
Also there's a problem with the file name, see attachment.  At the first arrow is the filename of the first attached photo.
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Studio 42 on January 31, 2016, 16:54:44 PM
Have you checked in your config all your path (in same tab as thumbnail creation) ?
Have you check the server rights and that all this folders exist and the subfolder resized with write premission.
I know you can have some problem on creating the folders by FTP. So you need to check rights and perhaps use CHMOD 777 in the resize folders.
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Ruup on January 31, 2016, 17:34:53 PM
The path for small images was like this: images/stories/virtuemart/forSale/resized/
changed it to this: images/stories/virtuemart/product/resized
Changed the folder rights to 777 and tested it again but no result. All the folders are present.
Only the first product image is created in the resized folder and the second doesn't, see attachment.
Very strange.

EDIT: if i use the option ''replace small image'' it is working.
Title: Re: Re: Please test our new vm3.0.11.2
Post by: Studio 42 on February 01, 2016, 10:15:36 AM
"kleine afbeelding" sould display the default thumbs name.
In your case you have no name at all, as if the resizing is not set, it's why it hink something is not corretly set in your VM config.
Title: Re: some thumbnails aren't showing on the frontend and there a no pictues visible in
Post by: kalestud on June 11, 2016, 13:33:58 PM
Ruup,

I also have this issue. I actually think is has to do with a custom plugin somewhere, but can't figure out the solution aswell. Tries all the same things as you did.
Also, in the backend in the products list, no thumbs are shown.
I can upload images to a product and in the frontend no thumbs show up, although the pictures do work. Going back to the Virtuemart Tools and clicking 'reset thumbs' fixes the frontend situation.
I now do this every time I uploaded a batch of new products.
Title: Re: some thumbnails aren't showing on the frontend and there a no pictues visible in
Post by: jenkinhill on June 11, 2016, 14:11:56 PM
http://forum.virtuemart.net/index.php?topic=133724.msg463963#msg463963
http://forum.virtuemart.net/index.php?topic=130865.msg464364#msg464364
Title: Re: some thumbnails aren't showing on the frontend and there a no pictues visible in
Post by: kalestud on June 11, 2016, 14:21:52 PM
Hi Jenkinhill,

unfortunately, this is not the case in my case and I can only guess that's the same with TS.
Thumbs are not shown in front on productdetails and (therefore) not generated automatically.