images not rendering

Created on 23 February 2024, 10 months ago
Updated 27 February 2024, 10 months ago

Problem/Motivation

When attempting to use the feed list block none of our images are rendering. The "section-image" area is rendering but no content inside.

<div class="block-section-center"><div class="section-image">
</div><h2><a href="http://events.lexpublib.org/event/9834497">Lego Club</a></h2><div class="c-feature"><a href="events.lexpublib.org/event/9834497#branch" target="_new"><div class="c-iconimage"><img src="/modules/contrib/communico_plus/images/map_pin.png"></div></a>Central Library</div><br><div class="c-feature"><div class="c-title">Age Group:</div> Middle School, High School, 3rd-5th Grade</div><br><div class="c-feature"><div class="c-title">Event Type:</div> Science &amp; STEM</div><br><div class="c-feature-paragraph"><p> Join us in the Kloiber Foundation STEAM Lab for Lego fun! We will have a different challenge each month. 
For Grades 3-12</p></div></div>

Steps to reproduce

Install module, setup "Communico Plus Filter Block" and rebuild select elements.

All data displays accept the images.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jgoodwill01

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

Comments & Activities

  • Issue created by @jgoodwill01
  • πŸ‡ΊπŸ‡ΈUnited States jgoodwill01
  • Assigned to earlyburg
  • πŸ‡ΊπŸ‡ΈUnited States earlyburg

    Looking into this.

  • πŸ‡ΊπŸ‡ΈUnited States earlyburg

    From what I can see from your copy-paste, the string that begins with:

    <img src="/sites/default/files/styles/medium/public/event_images/SomeImageName.jpg

    Does not exist.
    Although there could be many reasons for this, I would like to explore further.
    1. Does navigating to the page where the block is displayed produce any errors in /admin/reports/dblog ?
    2. When you view the developer console, are there any javascript errors displaying?
    3. Have you verified that there is no additional markup being passed from Communico that could be affecting the layout?
    (Communico allows a limited amount of markup to be used when creating an Event in the Communico admin interface. If the markup passed to Drupal is not compatable with the Drupal theme layer, then problems may result).

    I have also done some preliminary testing on my end to verify that changes in the Communico API could be causing this and it does not seem to be the case.

    Thank you for your patience with this issue, I appreciate it.

  • πŸ‡ΊπŸ‡ΈUnited States jgoodwill01

    Image style (medium) missing for public://event_images/9971421.jpg. Add the missing style under /admin/config/media/image-styles.

    Was getting this error in the dblog. Adding a 'medium' image style to my site allowed the images to display. Thank you very much!

    Is there any way to customize which image style is chosen I could see some great value in defining a unique or responsive image style?

  • πŸ‡ΊπŸ‡ΈUnited States earlyburg

    Glad you resolved this, but I am mindful that not every user will use a default image style.
    The code should permit the use of custom image styles.
    Creating a feature request for the project based on this issue, and closing this bug report as resolved.

    https://www.drupal.org/project/communico_plus/issues/3423988 πŸ“Œ Create a way to chose image styles for feed images Active

    Thank you for putting energy into Communico Plus. I appreciate it.

  • Status changed to Closed: works as designed 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States earlyburg
Production build 0.71.5 2024