Warning: filesize(): stat failed for [image url] when using a static image as the feed thumbnail

Created on 28 August 2023, 10 months ago
Updated 23 September 2023, 9 months ago

Problem/Motivation

When using a static image as the feed thumbnail the following error will be logged:

Warning: filesize(): stat failed for https://example.com/path/to/mylogo.png in Drupal\Core\Image\Image->__construct() (line 54 of core/lib/Drupal/Core/Image/Image.php)

This happens on every request, so it ends up filling the error logs.

Steps to reproduce

Use a static image as the feed thumbnail.
Load the feed.

Proposed resolution

Fix the bug.

Remaining tasks

Fix the bug.
Add test coverage.

User interface changes

API changes

TBD

Data model changes

TBD

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

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

Comments & Activities

Production build 0.69.0 2024