Jump to content
bbtil

Product Image error

Recommended Posts

Hi, I'm having an issue with this broken image on only some products. Any thoughts? https://shocktechusa.com/autococker-trigger-pants.html

Share this post


Link to post
Share on other sites

This is what I'm seeing on some of my products

http://shocktechusa.com/images/error.jpg

Share this post


Link to post
Share on other sites

Looks a bit sloppy, but...

Maybe you should describe what exactly it is that you don't like about it.

Share this post


Link to post
Share on other sites

For some reason there is a broken image link in the product images. I've checked the images attached to the product and they are all intact.

Share this post


Link to post
Share on other sites

Something just to the left of "Click to Enlarge", which is the alt attribute in:

<img src="" alt="Click to enlarge">

So, let's find the template to content.product.php

Actual HTML:

<a href="" id="image_166" class="colorbox gallery" rel="gallery"><img src="" alt="Click to enlarge"></a>
<a href="/images/cache/Parts/shoes11.500.png" id="image_289" class="colorbox gallery" rel="gallery"><img src="/images/cache/Parts/shoes11.50.png" alt="Click to enlarge"></a>
<a href="/images/cache/Parts/raw.500.png" id="image_290" class="colorbox gallery" rel="gallery"><img src="/images/cache/Parts/raw.50.png" alt="Click to enlarge"></a>

Template:

{foreach from=$GALLERY item=image}
<a href="{$image.large}" id="image_{$image.id}" class="colorbox gallery" rel="gallery"><img src="{$image.gallery}" alt="{$LANG.catalogue.click_enlarge}" /></a>
{/foreach}

Part of JSON array:
"image_165":{
  "id":"165",
  "product_id":"5",
  "file_id":"105",
  "main_img":"1",
  "type":"1",
  "disabled":"0",
  "filepath":"Parts\/",
  "filename":"shoes.jpg",
  "filesize":"14061",
  "mimetype":"image\/jpeg",
  "md5hash":"3949bd3fc8f6946f9d8d1241e858ffc1",
  "description":"",
  "source":"\/images\/source\/Parts\/shoes.jpg",
  "thumbnail":"\/images\/cache\/Parts\/shoes.138.jpg",
  "category":"\/images\/cache\/Parts\/shoes.580.jpg",
  "subcategory":"\/images\/cache\/Parts\/shoes.70.jpg",
  "gallery":"\/images\/cache\/Parts\/shoes.50.jpg",
  "normal":"\/images\/cache\/Parts\/shoes.270.jpg",
  "enlarge":"\/images\/cache\/Parts\/shoes.600.jpg",
  "tiny":"\/images\/cache\/Parts\/shoes.30.jpg",
  "small":"\/images\/cache\/Parts\/shoes.138.jpg",
  "medium":"\/images\/cache\/Parts\/shoes.270.jpg",
  "large":"\/images\/cache\/Parts\/shoes.500.jpg",
  "xlarge":"\/images\/cache\/Parts\/shoes.1800.jpg"
},

"image_166":{
  "id":"166",
  "product_id":"5",
  "file_id":"4",
  "main_img":"0",
  "type":"1",
  "disabled":"0",
  "filepath":"Paintball_Guns\/Shocktech\/",
  "filename":"trigp.png",
  "filesize":"0",
  "mimetype":"",
  "md5hash":"ce891e3a86026d6b2b471aac0670be4e",
  "description":"",
  "source":"",
  "thumbnail":"",
  "category":"",
  "subcategory":"",
  "gallery":"",
  "normal":"",
  "enlarge":"",
  "tiny":"",
  "small":"",
  "medium":"",
  "large":"",
  "xlarge":""
},

It seems the image as recorded in the CubeCart_filemanager database table, record file_id=4, trigp.png, isn't in /images/source/Paintball_Guns/Shocktech/, or isn't a PNG type file.

Share this post


Link to post
Share on other sites

At least, add the /Shocktech/ folder within /Paintball_Guns/, then put a copy of trigp.png in /Shocktech/.

Funny Story: I was wildly mouse dragging-dropping files from and to various folders, only to discover a few days later, I had accidentally moved a folder (and its subfolders) into a neighboring folder.

So, if you know that at one time you had a /Paint_Guns/ folder, start looking for it in other folders.

 

Edited by bsmither

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×