[nginx reverse proxy] media images not showing due to bad lins

Created on 18 August 2023, 11 months ago
Updated 28 March 2024, 3 months ago

Problem/Motivation

Cross posting from Core to here. Not sure which is more appropriate.

Update with the latest news. The media images do show up when rendered as an 'image' and do NOT show up when using drimage scaled rendering.

https://www.drupal.org/project/varbase/issues/3381982 πŸ› New install - media images not showing due to bad links? Active

New install. Media Images on the blogs or basic pages are not appearing.

Installed the Alpha2 Varbase today.

Created a new blog, inserted media file and filled it in.

Removed the default Welcome block from the homepage and added in the Varbase Blog Homepage Block with no edits.

The blog shows up but a bad image block.

Here is the homepage with the homepage blog block and the bad image link

Here is the content page for the blog. Still bad image link.

Here is the edit for the blog showing the media image selection.

I checked the path and permissions on the file which seemed good.

ls -la docroot/sites/default/files/2023-08/
total 392
drwxrwx--- 2 me   www-data                 3 Aug 18 16:33 .
drwxrwx--- 8 me   www-data               14 Aug 18 15:54 ..
-rw-rw-r-- 1 www-data www-data 395935 Aug 18 16:33 logo-fop-lodge-53.png
<div class="card varbase-impressed-card medium bordered h-100 anchor-all">
      
            <div data-component-id="varbase_components:field" class="field field--name-field-media field--type-entity-reference field--label-hidden field__item"><div class="contextual-region media media--type-image media--view-mode-media-16-09" data-component-id="varbase_components:media">
  <div data-contextual-id="media:media=4:changed=1692376423&amp;ds_bundle=image&amp;ds_view_mode=media_16_09&amp;langcode=en" data-contextual-token="1xyKtsk07H1-M0UPBaVTox15Bnzo4bTHrL4-TQqugpU" data-drupal-ajax-container=""></div>
      
            <div data-component-id="varbase_components:field" class="field field--name-field-media-image field--type-image field--label-hidden field__item">
<div  class="drimage" data-drimage="{&quot;fid&quot;:&quot;10&quot;,&quot;filename&quot;:&quot;logo-fop-lodge-53.png&quot;,&quot;threshold&quot;:100,&quot;upscale&quot;:100,&quot;downscale&quot;:3600,&quot;multiplier&quot;:1,&quot;imageapi_optimize_webp&quot;:null,&quot;lazy_offset&quot;:100,&quot;subdir&quot;:&quot;&quot;,&quot;original_width&quot;:&quot;600&quot;,&quot;original_height&quot;:&quot;538&quot;,&quot;original_source&quot;:&quot;\/sites\/default\/files\/2023-08\/logo-fop-lodge-53.png&quot;,&quot;image_handling&quot;:&quot;aspect_ratio&quot;,&quot;aspect_ratio&quot;:{&quot;width&quot;:&quot;16&quot;,&quot;height&quot;:&quot;9&quot;}}">
      <picture>
      <img src="data:image/svg+xml;charset=utf8,%3Csvg xmlns=&#039;http://www.w3.org/2000/svg&#039;%20width=&#039;16&#039;%20height=&#039;9&#039;%20viewBox=&#039;0%200%2016%209&#039;%20%3E%3C/svg%3E" width="16" height="9" alt="FOP Logo" />
    </picture>
  </div>
<noscript>
  <img src="/sites/default/files/2023-08/logo-fop-lodge-53.png" alt="FOP Logo" width="600" height="538">
</noscript>
</div>

I checked the public image path and it seems available when browsing directly to the image.

Steps to reproduce

Given
When
Then

Proposed resolution

Remaining tasks

  • βœ… File an issue about this project
  • ❌ Addition/Change/Update/Fix to this project
  • ❌ Testing to ensure no regression
  • ❌ Automated unit/functional testing coverage
  • ❌ Developer Documentation support on feature change/addition
  • ❌ User Guide Documentation support on feature change/addition
  • ❌ Accessibility and Readability
  • ❌ Code review from 1 Varbase core team member
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes and Update Helper on new feature change/addition
  • ❌ Release

Varbase update type

  • βœ… No Update
  • βž– Optional Update
  • βž– Forced Update
  • βž– Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
πŸ› Bug report
Status

Fixed

Version

10.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jjflynn22

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

Comments & Activities

Production build 0.69.0 2024