Thumbnails of images are not shown

Enonic version: 7.8.1
OS: Ubuntu 16.04

We updated from XP version 7.7.0 to XP version 7.8.1. We updated the version of Content Studio to version 4.0.2 as well.
The new version of XP has problem to show properly the thumbnails of images in both, tree content and the image selector. See the attached pictures. However the image is loaded correctly in the client application.
What can be the reason?

Thank you for the response
Pavel

Attachments:

Check error messages in browser console, this should give you a hint.

Hi,
Thank you for the hint, but the browser doesn’t show any error. I checked the log of XP, there is nothing interesting either. It’s really strange, the big overview is normally visible.

Any idea?

Hi again,
I think it’s a general problem of thumbnail creation. There is no thumbnail shown in the upper left corner of image editor either…

Can you open the thumbnail image in a separate window/tab and see what the error will be? Right-click the broken thumbnail, copy url and open it in a new tab. Also check XP logs for errors.

Hi,
I tried to follow your advises and open the image in a new tab, but it did not work. There is standard XP pop-up window shown in the tree structure content. So I right clicked on the image selector, there is no such offer like opening the image in a new tab, even the target path to the image is not shown as tool tip.
See the picture below.
I exported the XP log and stored it in my google disk, but there is nothing interesting, just web socket warnings at the end of the log.
Any other ideas?
Thumbnail_error4

I found something interesting…
I opened the detail panel of the picture on the right side of XP, see the image below. There is a thumbnail of the picture too. The thumbnail doesn’t appear either, but it was possible to get the link of it, at least.

  • Here it is:
    https://intranet-staging.es.gk-software.com/admin/rest-v2/cs/cms/default/content/content/icon/b74eb550-6058-4972-8687-63d3cda2a723?ts=1644576478483&crop=false

  • If I copied the link from the older version of XP (7.7.0), be aware it is different picture. I got this format:
    https://intranet.es.gk-software.com/xp/rest/cms/default/base/content/icon/1e966d9c-7ec4-4c06-9c27-b8a8577cfded?ts=1643891351184&crop=false

Comparing the addresses I found out, that in the first URL is admin instead of xp, which causes the problem. If I copy the URL in the new tab of the browser and replace admin with xp, the icon is shown. :slight_smile:

The question is: Where is the problem and how can I fix it?

Hello ase,
I did some investigation about the thumbnail problem, please see the new posts of mine of this thread.
Can you check why there is wrong URL of the thumbnails, please? Do you have some ideas how to fix it?
Thanks

Could you share your com.enonic.xp.web.vhost.cfg file, please?

enabled = true

mapping.admin.host = intranet-staging.es.gk-software.com
mapping.admin.source = /xp
mapping.admin.target = /admin
mapping.admin.idProvider.system = default

mapping.api-draft-cz.host = intranet-staging.es.gk-software.com
mapping.api-draft-cz.source = /xp/cz/draft/intranet
mapping.api-draft-cz.target = /site/default/draft/intranet

mapping.api-master-cz.host = intranet-staging.es.gk-software.com
mapping.api-master-cz.source = /xp/cz/master/intranet
mapping.api-master-cz.target = /site/default/master/intranet

mapping.api-draft-en.host = intranet-staging.es.gk-software.com
mapping.api-draft-en.source = /xp/en/draft/intranet
mapping.api-draft-en.target = /site/default-en/draft/intranet

mapping.api-master-en.host = intranet-staging.es.gk-software.com
mapping.api-master-en.source = /xp/en/master/intranet
mapping.api-master-en.target = /site/default-en/master/intranet

We have reproduced the issue and registered it here. The fix will hopefully make it to the upcoming release of Content Studio 4.0.3.

Thank you for the good news. I’m looking forward to the new version of Content Studio.

This should now be fixed in the latest Content Studio 4.0.3 (requires XP 7.8.2 or higher).

1 Like