Author Topic: Thumbnails - (Default URL)  (Read 4279 times)

Shimon Hirschhorn

  • Jr. Member
  • **
  • Posts: 141
Thumbnails - (Default URL)
« on: May 23, 2016, 11:30:00 am »
Hi,

I am having difficulties getting thumbnails to appear for some products.  I have been rooting around to try and understand what is the difference between products that will display thumbnails and those that won't.

I have followed the connections within the database and the information seems to be there, but there are some differences in the way the backend show things

I have checked and the thumbnails do exist in the public_html/images/stories/virtuemart/product/resized directory for both items.

The jos_virtuemart_medias..file_url_thumb field is empty for the items without thumbnails and some of the items that do show thumbnails.

However in the backend the items that do show the thumbnails the path starts with "(Default URL)" (eg   (Default URL) images/stories/virtuemart/product/resized/OH-TX-1_90x90.jpg ) and the items that do not display the thumbnail lack this prefix (eg images/stories/virtuemart/product/resized/OH-TR-1_90x90.jpg ).

Does anyone understand what is going on here and how can I fix this ?

Thanks in advance for any hints

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27461
  • Always on vacation
    • Jenkin Hill Internet
Re: Thumbnails - (Default URL)
« Reply #1 on: May 23, 2016, 13:33:51 pm »
Are you referring to product image thumb or additional image thumbs? The additional thumbs are generated on the fly when a product details page is viewed (takes microseconds, so does not affect page load speed). After that they appear in the backend.  I assume youi are using VM3.0.16?

file_url_thumbis not used now. http://forum.virtuemart.net/index.php?topic=132128.msg462937#msg462937
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.4.3.10057 on Joomla 3.9.10 PHP 7.0.33
Testing VM 3.5.0.10097 on Joomla 3.9.10

Shimon Hirschhorn

  • Jr. Member
  • **
  • Posts: 141
Re: Thumbnails - (Default URL)
« Reply #2 on: May 23, 2016, 14:01:20 pm »
Kelvyn, Thanks for the reply. 

I am referring to the Product Thumbs.

I am using VM3.0.14.  When I click download on the VM site, that is the version that it downloads.
I assume that I should upgrade.    Where do I get 3.0.16?  Will it help with this ?


Ajeet Singh

  • Beginner
  • *
  • Posts: 2
  • Virtuemart, Joomla & php developer
Re: Thumbnails - (Default URL)
« Reply #3 on: May 23, 2016, 14:15:38 pm »
Hi,

Actually In some virtuemart version you can get the thumbnail image using parameter "file_url_thumb" but in some virtuemart version you should not get . So i suggest you to find the parameter "file_url" . From that parameter you will get the full path of that thumbnail image like "images/stories/virtuemart/product/resized/OH-TX-1.jpg" the re-size that image using js or css according to your code line.

Thank You,

Ajeet Singh
Webkul Software pvt. Ltd.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27461
  • Always on vacation
    • Jenkin Hill Internet
Re: Thumbnails - (Default URL)
« Reply #4 on: May 23, 2016, 15:03:22 pm »
VM 3.0.16 is in http://dev.virtuemart.net/projects/virtuemart/files

In the backend yopu should see something like in the attached image -
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.4.3.10057 on Joomla 3.9.10 PHP 7.0.33
Testing VM 3.5.0.10097 on Joomla 3.9.10

Shimon Hirschhorn

  • Jr. Member
  • **
  • Posts: 141
Re: Thumbnails - (Default URL)
« Reply #5 on: May 23, 2016, 15:40:17 pm »
That is what I see on the backend.

Except that on items that the thumbnail the (Default URL) is missing.  I  checked and the full sized image is in the images dir and the thumbnail is in the resized dir.

However the thumbnail does not appear on the site.


I went to the file repository and tried to download.  It wants me to login.  So I searched for register and registered to redmine.  I tried to login to download the file and its invalid.

( I really am not this big of a dunce)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27461
  • Always on vacation
    • Jenkin Hill Internet
Re: Thumbnails - (Default URL)
« Reply #6 on: May 23, 2016, 15:57:43 pm »
On one of the products without a displayed thumb try re-uploading the image on the product image tab, select Replace for the image action. Then see if the thumb appears.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.4.3.10057 on Joomla 3.9.10 PHP 7.0.33
Testing VM 3.5.0.10097 on Joomla 3.9.10

Shimon Hirschhorn

  • Jr. Member
  • **
  • Posts: 141
Re: Thumbnails - (Default URL)
« Reply #7 on: May 23, 2016, 16:31:54 pm »
Hitting replace once does not help.

I have looked at the jos_virtuemart_product_medias table and the entry is there. (32225,671,1) .  Hitting replace/save causes it to add an entry (0,671,1).

If I hit replace again I get a SQL error that the INSERT of (0,671,1) already exists.

I checked the jos_virtuemart_medias and media 671 is there with the correct file URL. ( no thumbnail URL, but you already told me that this is not used)

Shimon Hirschhorn

  • Jr. Member
  • **
  • Posts: 141
Re: Thumbnails - (Default URL)
« Reply #8 on: May 23, 2016, 20:47:26 pm »
I upgraded to VM3.0.16  . (J!3.4.8)

 The thumbnail issue is still there.  Other issues cropped up.

Any hints appreciated.

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2235
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Thumbnails - (Default URL)
« Reply #9 on: May 24, 2016, 10:17:46 am »
VM 3.0.16 should be used with Joomla 3.5.1. VM3.0.16 has been patched specially for Joomla 3.5.1.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27461
  • Always on vacation
    • Jenkin Hill Internet
Re: Thumbnails - (Default URL)
« Reply #10 on: May 24, 2016, 12:28:20 pm »
Can you post the URL of a page with an image not showing?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.4.3.10057 on Joomla 3.9.10 PHP 7.0.33
Testing VM 3.5.0.10097 on Joomla 3.9.10

Shimon Hirschhorn

  • Jr. Member
  • **
  • Posts: 141
Re: Thumbnails - (Default URL)
« Reply #11 on: May 24, 2016, 14:39:28 pm »
Gladly !

http://www.proflixsales.com/products/converter/lynx-yellobrik-lc-single-optical-receiver-sfp-module-1260-1620nm

the sku is OH-RX-1-LC

In trying to find the problem I changed the image to  OHTR1.jpg
and the back end shows
images/stories/virtuemart/product/OHTR1.jpg     for the image and
(Default URL) images/stories/virtuemart/product/resized/OHTR1_90x90.jpg      for the thumb

When I search for the image via file manager the image is found. (see attached image)
But when I try and see the image via a browser I get a 404

Both images exist ?

BTW I have now upgraded from J3.4.8 to 3.5.1

So I am running J3.5.1  and VM3.0.16

Thanks for your help.

Shimon Hirschhorn

  • Jr. Member
  • **
  • Posts: 141
Re: Thumbnails - (Default URL)
« Reply #12 on: May 24, 2016, 15:32:13 pm »
For some reason the image does not exist via the browser but it is there.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27461
  • Always on vacation
    • Jenkin Hill Internet
Re: Thumbnails - (Default URL)
« Reply #13 on: May 24, 2016, 15:35:40 pm »
Unfortunately that did not help except to show that it is the main image as well as the thumb that is not showing. How many actual image files do you have in the products and resized directories? Is there any difference in filename structure between images that show and those that don't?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.4.3.10057 on Joomla 3.9.10 PHP 7.0.33
Testing VM 3.5.0.10097 on Joomla 3.9.10

Shimon Hirschhorn

  • Jr. Member
  • **
  • Posts: 141
Re: Thumbnails - (Default URL)
« Reply #14 on: May 24, 2016, 17:11:56 pm »
I found out why the image was not showing from a browser.  The owner was ROOT.  I changed them all to user,user.

Then you can see the image via a browser.

I re-uploaded my CSVI product import.

So ......

http://www.proflixsales.com/products/converter/lynx-yellobrik-lc-single-optical-receiver-sfp-module-1260-1620nm
SKU = OH-RX-1-LC
Used URL = images/stories/virtuemart/product/OH-TR-1.jpg
Used thumb url = (Default URL) images/stories/virtuemart/product/resized/OH-TR-1_90x90.jpg

Deleted the Thumbnail.
VM recreated it.
Both the full sized and the thumb are visible from a browser.

virtuemart_product_id = 32225.
jos_virtuemart_product_medias has a record (92161,32225,21088,1)
jos_virtuemart_medias has a record (21088,......, images/stories/virtuemart/product/OH-TR-1.jpg )

other products with this image are not showing either.

There are about 21,000 images in products.