- Issue created by @HeneryH
- Status changed to Closed: duplicate
9 months ago 12:23pm 28 March 2024
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&ds_bundle=image&ds_view_mode=media_16_09&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="{"fid":"10","filename":"logo-fop-lodge-53.png","threshold":100,"upscale":100,"downscale":3600,"multiplier":1,"imageapi_optimize_webp":null,"lazy_offset":100,"subdir":"","original_width":"600","original_height":"538","original_source":"\/sites\/default\/files\/2023-08\/logo-fop-lodge-53.png","image_handling":"aspect_ratio","aspect_ratio":{"width":"16","height":"9"}}">
<picture>
<img src="data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='9'%20viewBox='0%200%2016%209'%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.
Given
When
Then
Closed: duplicate
10.0
Code