Jump to content

SOLVED: After update images have wrong paths and do not display?


Recommended Posts

try to edit you themes/default/product.tpl and change line 179 from:

 

<img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large')}" {if $jqZoomEnabled}class="jqzoom" alt="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox')}"{else} title="{$product->name|escape:'htmlall':'UTF-8'}" alt="{$product->name|escape:'htmlall':'UTF-8'}" {/if} id="bigpic" width="{$largeSize.width}" height="{$largeSize.height}" />

 

TO:

 

<img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')}" {if $jqZoomEnabled}class="jqzoom" alt="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox_default')}"{else} title="{$product->name|escape:'htmlall':'UTF-8'}" alt="{$product->name|escape:'htmlall':'UTF-8'}" {/if} id="bigpic" width="{$largeSize.width}" height="{$largeSize.height}" />

 

So I used the automatic update and updated to the latest prestashop.

But the problem is that now when viewing the product, the images do not appear. You can see here for your selves: http://www.korner.ee...3-koduvorm.html

 

It shows the path to be domain.com/img/p/4/0/4/404.jpg when it should be domain.com/img/p/706-7915.jpg

 

Any suggestions?

Edited by kuldmedal (see edit history)
Link to comment
Share on other sites

make sure in your BO preferences -> images, that you have large_default valid for products.

I found out something but I am not sure how you will fix it.

 

this small thumbnail showing fine:

http://www.korner.ee...13-koduvorm.jpg

but when it need to show large its calling:

http://www.korner.ee...13-koduvorm.jpg

when it should be:

http://www.korner.ee...13-koduvorm.jpg

 

 

You are missing for some reason the "_default" and also the "13-" at the begining.....

Maybe someone who knows better can help you...

 

All I can say is check your preferences -> images to make sure you have everything attached to where it should be, and regenerate if you made any change.

 

Good luck

Edited by yaniv14 (see edit history)
Link to comment
Share on other sites

try to edit you themes/default/product.tpl and change line 179 from:

 

<img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large')}" {if $jqZoomEnabled}class="jqzoom" alt="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox')}"{else} title="{$product->name|escape:'htmlall':'UTF-8'}" alt="{$product->name|escape:'htmlall':'UTF-8'}" {/if} id="bigpic" width="{$largeSize.width}" height="{$largeSize.height}" />

 

TO:

 

<img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')}" {if $jqZoomEnabled}class="jqzoom" alt="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox_default')}"{else} title="{$product->name|escape:'htmlall':'UTF-8'}" alt="{$product->name|escape:'htmlall':'UTF-8'}" {/if} id="bigpic" width="{$largeSize.width}" height="{$largeSize.height}" />

Link to comment
Share on other sites

try to edit you themes/default/product.tpl and change line 179 from:

 

<img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large')}" {if $jqZoomEnabled}class="jqzoom" alt="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox')}"{else} title="{$product->name|escape:'htmlall':'UTF-8'}" alt="{$product->name|escape:'htmlall':'UTF-8'}" {/if} id="bigpic" width="{$largeSize.width}" height="{$largeSize.height}" />

 

TO:

 

<img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')}" {if $jqZoomEnabled}class="jqzoom" alt="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox_default')}"{else} title="{$product->name|escape:'htmlall':'UTF-8'}" alt="{$product->name|escape:'htmlall':'UTF-8'}" {/if} id="bigpic" width="{$largeSize.width}" height="{$largeSize.height}" />

 

Just tried it out and works! Thanks a bunch! :)

Link to comment
Share on other sites

×
×
  • Create New...