Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Some files were deleted on the server but still in the db (temporary)
I listed their FID in the manual delete Tab and click "Engage"
Everything runs fine (I mean no mistake) but the files are still there!!
I made another try by adding only one FID but I got this error:
Une erreur HTTP AJAX s'est produite.
Code de statut HTTP : 500
Informations de débogage ci-dessous.
Chemin : /batch?id=34&op=do_nojs&op=do
StatusText: Internal Server Error
ResponseText :
Comment | File | Size | Author |
---|---|---|---|
#5 | fancy_file_delete-change_method_to_delete-2730599-5.patch | 432 bytes | myLies |
Comments
Comment #2
DuneBLAs a side note, I just ran
file_delete($myFID);
and the file was correctly deleted!Comment #3
HongPong CreditAttribution: HongPong as a volunteer and at kor group commentedI had similar errors. Thanks for the tip. This is a messy thing to sort out!
It would be good if this can specifically scrub fid in the database after the files are gone.
error was
FileUsageInterface not found in fancy_file_delete_batch
It has to do with if force delete is checked probably. If you're not forcing, the interface has nothing. I think interface has to be implemented?
else {
FileUsageInterface::delete($file);
}
Comment #4
HongPong CreditAttribution: HongPong as a volunteer and at kor group commentedComment #5
myLies CreditAttribution: myLies as a volunteer commentedYes, this way needs implementation.
I сreated a simple patch. It may fix this error in case when you wouldn't use the "force remove"
It work for me
Comment #6
myLies CreditAttribution: myLies as a volunteer commentedComment #7
labboy0276 CreditAttribution: labboy0276 commentedThanks for this, I havent touched the d8 version in quite some time. I will roll this when I work on the D8 version one day.
Comment #8
labboy0276 CreditAttribution: labboy0276 commentedOne day when will will retool the d8 version, but since VBO is still in a state of flux, I am not going to port this patch in. I will leave it here for the universe to use as need be though.
Comment #9
HongPong CreditAttribution: HongPong as a volunteer and at kor group commentedlabboy0276 I would still suggest rolling in the #5 patch from myLies because the patched line addresses an un-implemented interface. It does improve the codebase.
Comment #10
labboy0276 CreditAttribution: labboy0276 commentedok i added it