Preview thumbnail images fail/not generated for Site Studio Components

Created on 11 March 2025, about 1 month ago

Problem/Motivation

After updating to 1.1.x preview images for Site Studio components fail to load during content entry if not previously generated. Only existing thumbnails in the local file system load correctly.

Steps to reproduce

Upgrade to 1.1.x on a site with Site Studio and some Site Studio components with images from DAM.

DAM images will no longer show a thumbnail in the content entry experience of Site Studio, but will work elsewhere.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇨🇦Canada ibullock London, ON

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @ibullock
  • 🇵🇱Poland paladyn

    I have the same issue and I manage to solve it by changing one line of code in "src/Plugin/media/Source/Asset.php" - line 283.

    return $this->getRemoteThumbnailUri($external_id) ?: $asset['thumbnails']['600px']['url'];

    to

    return $asset['thumbnails']['600px']['url'] ?: $this->getRemoteThumbnailUri($external_id);

    For me $asset['thumbnails']['600px']['url'] - has right preview path and $this->getRemoteThumbnailUri($external_id); generates wrong one.

    I was not digging further into it, but I hope it will help someone to fix the source of issue.

  • 🇨🇴Colombia pablomoto1000

    Added a patch to enforce widget_table view mode as a quick fix to this missing thumbnails issue in a default D10 site.

  • 🇮🇳India vipin.mittal18 Greater Noida

    Hello @ibullock, Could you please outline the exact steps to reproduce the issue?

Production build 0.71.5 2024