Jump to content

prestashop image errors after migration


patriciapresta

Recommended Posts

Hi,

After migrating my store from one server to another,, I am encountering several issues:

the thumbnails on the product list aren't being displayed unless I refresh the page, across all browsers.

Also, I keep getting a weird bug, on the same size on all products, saying that 'This combination isn't available' even though it is, and there are products in stock.

Any idea?

Thank you.

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

Hi,

https://www.mediacom87.fr/afficher-images-apres-migration/

a little tuto to help you it's in french but i give you translation :

Citation

Whether you are migrating a server or putting your local installation online (or vice versa), you may have the problem that your images do not appear on your PrestaShop site.

This is totally normal and is very easy to correct with a few clicks.

  1.     Go to the SEO&URLs section of your back office.
    PS1.6 : Preferences >> SEO&URLs
    PS1.7 : Shop settings >> Traffic and SEO > SEO&URLs tab
  2.     Disable the option: Simplified URL
  3.     save
  4.     Enable option: Simplified URL
  5.     save

And normally your images appear again on your site.

If this is not the case, you can also generate your thumbnails again.

 

Link to comment
Share on other sites

12 hours ago, Mediacom87 said:

Hi,

https://www.mediacom87.fr/afficher-images-apres-migration/

a little tuto to help you it's in french but i give you translation :

 

Hi, thanks for the reply-

I have tried that but it did nothing.

I also tried replacing the thumbnails manually and no luck.

I am now trying to regenerate them from the prestashop backoffice.

 

Link to comment
Share on other sites

Anyone have any idea on how to solve this?

I tried regenerating the thumbnails many different times, changed size and regenerated, cleared cache, cleared browsers cache, regenerated webconfig through friendly URL...

Nothing works.

 

My shop  version is 1.6.1.23.

I have leo-alaska theme installed. Not by me, by previous developer. I'm only maintaining the site.

Can any prestashop developer help please?

If anyone wants to check it out, the link is this www.coccodrillo.pt

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

 @Mediacom87 

On 8/9/2019 at 11:55 PM, Mediacom87 said:

Hi,

Wouldn't it be possible that the image format doesn't exist?

Could you give us a screenshot of the configuration of the image formats?

Hey, I don't think so, everything seems fine,

also the images are on the img/p folder, so they do exist,

I have tried taking them off and putting them back in, as well as regenerating them.

 

 

ee.png

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

Also, here's the thumbnail code on the product.tpl

 

<!-- thumbnails -->
                <div id="views_block" class="clearfix {if isset($images) && count($images) < 2}hidden{/if}">
                    {if isset($images) && count($images) > 2}
                        <span class="view_scroll_spacer">
                            <a id="view_scroll_left" class="" title="{l s='Other views'}" href="javascript:{ldelim}{rdelim}">
                                {l s='Previous'}
                            </a>
                        </span>
                    {/if}
                    <div id="thumbs_list">
                        <ul id="thumbs_list_frame">
                        {if isset($images)}
                            {foreach from=$images item=image name=thumbnails}
                                //{assign var=imageIds value="`$product->id`-`$image.id_image`"}//
                                    {assign var=imageIds value="$product->id - $image.id_image"}
                                {if !empty($image.legend)}
                                    {assign var=imageTitle value=$image.legend|escape:'html':'UTF-8'}
                                {else}
                                    {assign var=imageTitle value=$product->name|escape:'html':'UTF-8'}
                                {/if}
                                <li id="thumbnail_{$image.id_image}"{if $smarty.foreach.thumbnails.last} class="last"{/if}>
                                    <a{if $jqZoomEnabled && $have_image && !$content_only} href="javascript:void(0);" rel="{literal}{{/literal}gallery: 'gal1', smallimage: '{$link->getImageLink($product->link_rewrite, $imageIds, 'large_default')|escape:'html':'UTF-8'}',largeimage: '{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox_default')|escape:'html':'UTF-8'}'{literal}}{/literal}"{else} href="{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox_default')|escape:'html':'UTF-8'}"    data-fancybox-group="other-views" class="fancybox{if $image.id_image == $cover.id_image} shown{/if}"{/if} title="{$imageTitle}">
                                        <img class="img-responsive" id="thumb_{$image.id_image}" src="{$link->getImageLink($product->link_rewrite, $imageIds, 'cart_default')|escape:'html':'UTF-8'}" alt="{$imageTitle}" title="{$imageTitle}" itemprop="image" />
                                    </a>
                                </li>
                            {/foreach}
                        {/if}
                        </ul>
                    </div> <!-- end thumbs_list -->
                    {if isset($images) && count($images) > 2}
                        <a id="view_scroll_right" title="{l s='Other views'}" href="javascript:{ldelim}{rdelim}">
                            {l s='Next'}
                        </a>
                    {/if}
                </div> <!-- end views-block -->
                <!-- end thumbnails -->

 

Link to comment
Share on other sites

10 minutes ago, Mediacom87 said:

and reactivating them as I explained in this post?

 

 

Hi, that didn't work, I think the problem was within the rewriting rules on the htacess file, I converted them to the webconfig and now they work, with the URL rewrite rules otpion turned on. My shop is working on a Windows server so the htacess wasn't compatible, and that was causing problems.

Link to comment
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
×
×
  • Create New...