Local image styles are not created

Created on 3 November 2023, 8 months ago
Updated 13 December 2023, 6 months ago

Problem/Motivation

When stage_file_proxy is installed, local image styles are not created.

Steps to reproduce

On staging server, I create a basic_page node, add an image from media browser, save the page.
The result is a page with a broken image, here's the element:

<picture class="image">
          <source srcset="/sites/xyz/files/styles/width_1920px_height_600px/public/media/image/2023-10/rxyz.webp?h=06f6671c&amp;itok=jzILKhSW 1x" media="all and (min-width: 61.25em)" type="image/webp">
          <source srcset="/sites/xyz/files/styles/width_1080_height_515/public/media/image/2023-10/xyz.webp?h=06f6671c&amp;itok=nOogRWVJ 1x" media="all and (min-width: 48em)" type="image/webp">
          <source srcset="/sites/xyz/files/styles/width_769_height_965/public/media/image/2023-10/xyz.webp?h=06f6671c&amp;itok=xBsmHT3f 1x" media="all and (min-width: 26em)" type="image/webp">
          <source srcset="/sites/xyz/files/styles/width_450px_height_460px/public/media/image/2023-10/xyz.webp?h=06f6671c&amp;itok=ZXazdT-x 1x" media="all and (min-width: 25em)" type="image/webp">
          <source srcset="/sites/xyz/files/styles/width_1920px_height_600px/public/media/image/2023-10/xyz.jpeg?h=06f6671c&amp;itok=jzILKhSW 1x" media="all and (min-width: 61.25em)" type="image/jpeg">
          <source srcset="/sites/xyz/files/styles/width_1080_height_515/public/media/image/2023-10/xyz.jpeg?h=06f6671c&amp;itok=nOogRWVJ 1x" media="all and (min-width: 48em)" type="image/jpeg">
          <source srcset="/sites/xyz/files/styles/width_769_height_965/public/media/image/2023-10/xyz.jpeg?h=06f6671c&amp;itok=xBsmHT3f 1x" media="all and (min-width: 26em)" type="image/jpeg">
          <source srcset="/sites/xyz/files/styles/width_450px_height_460px/public/media/image/2023-10/xyz.jpeg?h=06f6671c&amp;itok=ZXazdT-x 1x" media="all and (min-width: 25em)" type="image/jpeg">
      

  <img src="/sites/xyz/files/styles/width_450px_height_460px/public/media/image/2023-10/xyz.jpeg?h=06f6671c&amp;itok=ZXazdT-x" alt="Test" typeof="foaf:Image" class="image__img" data-src="/sites/xyz/files/styles/width_450px_height_460px/public/media/image/2023-10/xyz.jpeg?h=06f6671c&amp;amp;itok=ZXazdT-x">

</picture>

None of the files above is generated.

Looking at the network pane in the developer console, I see that there is a request to the production server, but it is a 404 because that image is not in production.

Before considering this an actual issue/bug, I would like to make sure that the expected behavior, when using this module, is to handle local images (uploaded to the staging server) as per default, and try to fetch from production only when they are not available locally.

Also, I would like to know if there are any known issues when combining stage_file_proxy with webp module.

Versions: core 9.5.11, stage_file_proxy 2.1.2, webp 8.x-1.0-rc1

Thanks

💬 Support request
Status

Closed: outdated

Version

2.1

Component

Code

Created by

🇫🇮Finland lorenzo_coronati

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

Comments & Activities

Production build 0.69.0 2024