Warning: file_get_contents() Failed to open stream: No such file or directory in Drupal\image_sizes\ImageSizesService->createBase64Attributes()

Created on 28 September 2023, about 1 year ago
Updated 15 September 2024, 3 months ago

Problem/Motivation

When an image is missing from the file system, The message Warning: file_get_contents() Failed to open stream: No such file or directory in Drupal\image_sizes\ImageSizesService->createBase64Attributes() appears on the page.

Steps to reproduce

Configure the module as usual. Remove the image of your test page from the file system.

Proposed resolution

Check if the file exists before encoding it.

Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

🇩🇪Germany Hydra

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024