VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: TokyoSquare on January 10, 2015, 11:14:38 AM

Title: Some thumbnails not showing
Post by: TokyoSquare on January 10, 2015, 11:14:38 AM
Hi !
When i upload my website to server, some thumbnails not showing.
Title: Re: Some thumbnails not showing
Post by: GJC Web Design on January 10, 2015, 11:34:52 AM
no expert on this but I would just rename the images to "safe" names
Title: Re: Some thumbnails not showing
Post by: TokyoSquare on January 10, 2015, 16:21:44 PM
My website have more than 1000 products. I can't rename and update its manually. My website in localhost no problem.
Title: Re: Some thumbnails not showing
Post by: GJC Web Design on January 10, 2015, 19:40:28 PM
then it must be the way your host server handles the names - but as i say - no expert in this stuff - we English speakers solved the problem by getting rid of every stupid letter we could find..  :P
Life is so much easier
Title: Re: Some thumbnails not showing
Post by: TokyoSquare on January 23, 2015, 17:52:30 PM
I reupload \images\stories\virtuemart\product.  Product images are showing but thumbs not showing.
Title: Re: Some thumbnails not showing
Post by: Zilvermeeuw on January 27, 2015, 09:29:09 AM
What is the full uri to your thumb, which is not showing? Can you show this thumb, if you put this uri in the addressbar of Firefox?
Title: Re: Some thumbnails not showing
Post by: TokyoSquare on January 27, 2015, 13:35:55 PM
I check it with Firebug:
(http://trangtrinoithathiendai.com/1.gif)
I can show this thumb, if i put this url in the addressbar:
(http://trangtrinoithathiendai.com/2.gif)
Title: Re: Some thumbnails not showing
Post by: Zilvermeeuw on January 27, 2015, 13:45:15 PM
In the <img> tag src value is pointing to another file. It points to filetype_jpg.png. Can jou put this file in jouw browser?
Title: Re: Some thumbnails not showing
Post by: TokyoSquare on January 27, 2015, 13:50:32 PM
It show when i put url to this:
(http://trangtrinoithathiendai.com.1.gif)
Title: Re: Some thumbnails not showing
Post by: Zilvermeeuw on January 27, 2015, 14:06:17 PM
Can you do a "ls -l" on the file "filetype_jpg.png"?
Title: Re: Some thumbnails not showing
Post by: TokyoSquare on January 27, 2015, 14:11:05 PM
I do not understand.
:D
Title: Re: Some thumbnails not showing
Post by: Zilvermeeuw on January 27, 2015, 14:15:02 PM
Ow, I thought you are working on Linux.
Can show the file permissions of the file  "filetype_jpg.png"?
Title: Re: Some thumbnails not showing
Post by: TokyoSquare on January 27, 2015, 14:39:57 PM
I'm using Linux hosting. Permissions of the file "filetype_jpg.png" 644.
Title: Re: Some thumbnails not showing
Post by: Zilvermeeuw on January 27, 2015, 14:49:26 PM
I have several joomla/virtuemart sites, none of them has the file "filetype_jpg.png". they do have "filetype_pdf.png" and "filetype_zip.png".

Can you show me a copy of Firefox with the following address: http://localhost/ <secret> /components/com_virtuemart/assets/images/vmgeneral/filetype_jpg.png

You have to fill in <secret> ;-)
Title: Re: Some thumbnails not showing
Post by: TokyoSquare on January 27, 2015, 15:25:00 PM
Object not found!  :P
Title: Re: Some thumbnails not showing
Post by: Zilvermeeuw on January 27, 2015, 16:21:06 PM
Aaaahhh!

The value of srt within the img must point to your thumb. Your tumbs are located in the "resized" folder as shown above (the bath)
Title: Re: Some thumbnails not showing
Post by: TokyoSquare on January 27, 2015, 16:35:27 PM
Yes. It's default. I don't change it. I change hosting and problem appearance.
Title: Re: Some thumbnails not showing
Post by: GJC Web Design on January 27, 2015, 16:55:27 PM
and if u make a png called filetype_jpg.png and stick it in /components/com_virtuemart/assets/images/vmgeneral/?
Title: Re: Some thumbnails not showing
Post by: TokyoSquare on January 27, 2015, 17:08:47 PM
I make a filetype_jpg.png and stick it in /components/com_virtuemart/assets/images/vmgeneral/
This is result:
(http://trangtrinoithathiendai.com/test.jpg)
Title: Re: Some thumbnails not showing
Post by: Zilvermeeuw on January 27, 2015, 17:38:30 PM
I suppose you want a different thumb for each product?
Title: Re: Some thumbnails not showing
Post by: TokyoSquare on January 28, 2015, 13:29:19 PM
Can you help me via teamviewer ?  :'(
Title: Re: Some thumbnails not showing
Post by: Zilvermeeuw on January 28, 2015, 13:50:27 PM
I don't have teamviewer. But I think we are close to a solution.

In virtuemart administrator, products, select a product and goto tab "Product images".
What is the text after "Used thumb url"
If this is something with "filetyp_jpg.png", then upload a new image with "Replace thum" selected.
Title: Re: Some thumbnails not showing
Post by: TokyoSquare on January 28, 2015, 13:57:57 PM
I have added nearly 1,000 products . And so I can not make out manually . Website is still performing well in the old hosting. The problem occurs when I change hosting.  :'(
Title: Re: Some thumbnails not showing
Post by: Zilvermeeuw on January 28, 2015, 14:12:18 PM
I understand.
But to fully understand where the error is located, I need to know the text behind "Used thumb url".
I suppose the text on the "old" site is different. Can you confirm this?
Title: Re: Some thumbnails not showing
Post by: TokyoSquare on January 28, 2015, 14:15:49 PM
Can i give you my website url ?  :P
Title: Re: Some thumbnails not showing
Post by: Zilvermeeuw on January 28, 2015, 14:17:46 PM
sure.
Send the passwords as a personal message.
Title: Re: Some thumbnails not showing
Post by: TokyoSquare on January 28, 2015, 14:43:25 PM
Check your inbox message  ;D. Thanks !
Title: Re: Some thumbnails not showing
Post by: Zilvermeeuw on January 28, 2015, 14:45:16 PM
Your website is too slow at this time. Firefox is just spinning.
If I completely remove the folder where the thumbs are located (..../resized), Virtuemart automaticly recreate the thumbs, if you visit a page of your site. But only if you have the setting: Virutemart / Configuration, tab Templates, "Enable Dynamic Thumbnail Resizing". Do you have this selected?

I tested on my sites (Joomla 2.5 with VM 2.6.14 and Joomla 3.x with VM 3.x).
Title: Re: Some thumbnails not showing
Post by: Zilvermeeuw on January 28, 2015, 14:46:20 PM
How did you made the copy from your live site to xampp? With Akeeba?
Title: Re: Some thumbnails not showing
Post by: TokyoSquare on January 28, 2015, 15:13:26 PM
I'm checked "Enable Dynamic Thumbnail Resizing". I rename the resized folder to other name.  Virtuemart automaticly create resized folder but not recreate the thumbs.  :-\
Title: Re: Some thumbnails not showing
Post by: Zilvermeeuw on January 28, 2015, 15:17:49 PM
I was able to to look in your admin site now.
The text after "Used thumb url" is correct. Your "Safepath" however is NOT. But this is a different topic.

I will NOT install teamviewer (other reasons).

As response to your last response: What is the text after "Used thumb url" of your products on your xampp server?
Title: Re: Some thumbnails not showing
Post by: jenkinhill on January 28, 2015, 15:19:21 PM
Problem is probably with the compilation of the GD library on the server. Make a new product with the product image having a simple name, eg newimage.jpg and see if it is choking on the filename.
Title: Re: Some thumbnails not showing
Post by: GJC Web Design on January 28, 2015, 16:17:09 PM
hmmm - post 2 -> 

Quoteno expert on this but I would just rename the images to "safe" names

I really can't see that with file names like this your not going to have trouble..
so the script can't find this horrendously named file and substitutes the "no-image" one

what ever happened to naming conventions .. no caps, no spaces, alpha/numeric - or do only old cruds stick to this now? ;)
Title: Re: Some thumbnails not showing
Post by: TokyoSquare on January 28, 2015, 16:32:43 PM
On old my hosting, it work well. Example link: http://thanhdang.com.vn/hungthinh/hungthinh/index.php/s-n-ph-m/american-standard/b-n-t-m
I'm try using Akeeba Backup but problem not solved.
I add new product, it show normaly.  :'(