New install - media images not showing due to bad links?

Created on 18 August 2023, over 1 year ago
Updated 28 March 2024, 9 months ago

Problem/Motivation

Addition info. I tried to view/edit my text formatters to see what they were doing with media and upon saving the editor config I get this error in my apache2 logs.

[Fri Aug 18 18:49:05.693616 2023] [proxy_fcgi:error] [pid 338092:tid 139695279302208] [client 10.220.127.13:52358] AH01071: Got error 'PHP message: Uncaught PHP Exception TypeError: "Drupal\\cl_block\\Plugin\\Filter\\ClComponentEmbed::Drupal\\cl_block\\Plugin\\Filter\\{closure}(): Argument #1 ($input) must be of type array, null given, called in /var/www/varbase/docroot/modules/contrib/cl_block/src/Plugin/Filter/ClComponentEmbed.php on line 159" at /var/www/varbase/docroot/modules/contrib/cl_block/src/Plugin/Filter/ClComponentEmbed.php line 156', referer: https://www.mydomain.com/admin/config/content/formats/manage/full_html?d...

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

Closed: duplicate

Version

10.0

Component

Code

Created by

🇺🇸United States HeneryH

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

Comments & Activities

Production build 0.71.5 2024