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

Use FileSystem::delete() instead of FileSystem::unset(). The former guards against this warning by checking the existence of the file prior to calling into unset().

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork feeds-3480545

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

znerol created an issue. See original summary.

znerol’s picture

Status: Active » Needs review
znerol’s picture

Issue summary: View changes

megachriz made their first commit to this issue’s fork.

  • megachriz committed b0c52a15 on 8.x-3.x authored by znerol
    Issue #3480545 by znerol: Fixed PHP Warning: unlink(): No such file or...
megachriz’s picture

Status: Needs review » Fixed

Thanks for your contribution. I merged the code!

Status: Fixed » Closed (fixed)

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