Error: Call to a member function getFileUri() on null in Drupal\field_group_background_image

Created on 8 July 2022, about 2 years ago
Updated 19 January 2024, 8 months ago

Error: Call to a member function getFileUri() on null in Drupal\field_group_background_image\Plugin\field_group\FieldGroupFormatter\BackgroundImage->imageUrl() (line 158 of /contrib/field_group_background_image/src/Plugin/field_group/FieldGroupFormatter/BackgroundImage.php)

Thanks in advance.

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇮🇳India rahul_sankrit New Delhi

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • Merge request !73294959 - Fix error → (Merged) created by AstonVictor
  • Status changed to Fixed 9 months ago
  • 🇺🇦Ukraine AstonVictor

    The error related to getting the file URL is fixed.

    Also, found that it is possible to add media references without image fields. In that case, it is impossible to create an image style for video/audio/etc - FileNotFoundException: The file "public://styles/{IMAGE_STYLE}/public/" does not exist in Symfony\Component\HttpFoundation\File\File->__construct()

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024