This module silences Drupal's error messages that appear when temporary files have already been deleted from disk during garbage collection. It allows you to specify which temporary file URI prefixes should be ignored to prevent these recurring, unhelpful warnings.
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
- Enable the module configure the string at admin->configuration->Development->logging and errors
- 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
- 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
- You can provide the values in comma separated like: public,youtube in case of above multiple type of file uri errors
Ask your assistant about Skip temp file warnings
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
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.