Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Could not delete temporary file during garbage collection

Could not delete temporary file "public://sample.jpg" during garbage collection

Drupal deletes unused temporary managed files automatically in file_cron. However if the file has already been deleted from disk, then Drupal generates an error message:

The error message repeats on every cron cycle and there is no obvious way to recover from the UI.

It seems that this error message is unnecessary and unhelpful. This module will help to skip this warning.

Usage

  1. Enable the module configure the string at admin->configuration->Development->logging and errors
  2. Configure the string present in file URI.
    • Example: public is the string in the below log message
    • Could not delete temporary file "public://sample.jpg" during garbage collection
  3. Multiple types of file URI can also be configured by adding the strings in comma separated values.
    • Example: public is the string in the below first log message
    • youtube is the string in the second log message
    • Could not delete temporary file "public://sample.jpg" during garbage collection
    • Could not delete temporary file "youtube://sample.mo4" during garbage collection
  4. You can provide the values in comma separated like: public,youtube in case of above multiple type of file uri errors

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Nov 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
5.1.0 Stable May 30, 2024
5.0.x-dev Dev Nov 23, 2023
5.0.0 Stable Nov 23, 2023