PHP Warning: unlink(): No such file or directory

Created on 14 October 2024, 6 months ago

Problem/Motivation

Getting quite some log spam due to HttpFetcherResult::cleanUp trying to unlink() a file which was already removed.

Warning: unlink([...]/private/in_progress/2/http_fetcher_owBE25): No such file or directory in Drupal\Core\File\FileSystem->unlink() (line 118 of [...]/core/lib/Drupal/Core/File/FileSystem.php)

Steps to reproduce

Proposed resolution

Guard against this by checking for file_exists($this->filePath) in HttpFetcherResult::cleanUp.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇨🇭Switzerland znerol

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

Comments & Activities

Production build 0.71.5 2024