Preview thumbnail images fail/not generated for Site Studio Components

Created on 11 March 2025, 4 months 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

Merge Requests

Comments & Activities

  • Issue created by @ibullock
  • 🇨🇦Canada ibullock London, ON
  • 🇵🇱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?

  • 🇮🇳India vipin.mittal18 Greater Noida

    Solution: Please follow the steps outlined below:

    1. Navigate to /admin/structure/media/manage/acquia_dam_image_asset/display/media_library.
    2. Replace the existing field with the “Asset Reference field.” and set image style along with.
    3. Finally, click “Save.”
  • 🇮🇳India vipin.mittal18 Greater Noida
  • Status changed to Needs work 21 days ago
  • 🇮🇳India vipin.mittal18 Greater Noida

    The v2 structure format is causing issues with thumbnail generation. Therefore, we have decided to serve the thumbnail using v3 as a uniform solution.

  • First commit to issue fork.
  • Pipeline finished with Canceled
    20 days ago
    Total: 79s
    #520318
  • Pipeline finished with Failed
    20 days ago
    Total: 2555s
    #520319
  • Pipeline finished with Failed
    20 days ago
    Total: 2017s
    #520366
  • Pipeline finished with Failed
    20 days ago
    Total: 3314s
    #520409
  • Pipeline finished with Failed
    16 days ago
    Total: 2463s
    #523215
  • First commit to issue fork.
  • Pipeline finished with Canceled
    16 days ago
    #523533
  • Pipeline finished with Failed
    16 days ago
    #523534
  • Pipeline finished with Success
    15 days ago
    Total: 3728s
    #523597
  • Pipeline finished with Failed
    15 days ago
    Total: 2720s
    #524134
  • Pipeline finished with Success
    15 days ago
    Total: 2352s
    #524300
  • Pipeline finished with Success
    15 days ago
    Total: 2329s
    #524330
  • 🇮🇳India rajeshreeputra Pune

    Requesting review.

  • Pipeline finished with Success
    14 days ago
    Total: 2349s
    #524947
  • Pipeline finished with Success
    13 days ago
    Total: 2592s
    #526249
  • 🇺🇸United States japerry KVUO

    While a cursory look at the code looks ok, it'd be good to get validation here that the issue found with site studio is fixed.

  • Pipeline finished with Skipped
    8 days ago
    #529616
  • Pipeline finished with Skipped
    8 days ago
    #529618
  • 🇺🇸United States japerry KVUO

    Received validation that it works in Site Studio, fixed!

Production build 0.71.5 2024