Jump to content
patriciapresta

prestashop image errors after migration

Recommended Posts

Posted (edited)

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)

Share this post


Link to post
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.

 

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites
Posted (edited)

Ok, so I tried regenerating images from the backoffice and I don't think it worked, unfortunately..

I am all out of ideas! Can anyone help?

I'll post some pictures of what is happening.

imgerror.png

imgerror2.png

Edited by patriciapresta
I solved one of the issues, which was a server timeout. (see edit history)

Share this post


Link to post
Share on other sites
Posted (edited)

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)

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
Posted (edited)

 @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)

Share this post


Link to post
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 -->

 

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
Il y a 6 heures, patriciapresta a dit :

My shop is working on a Windows server

There you are really looking for problems: -)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More