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 : 
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DuneBL created an issue. See original summary.

DuneBL’s picture

As a side note, I just ran file_delete($myFID); and the file was correctly deleted!

HongPong’s picture

I 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);
}

HongPong’s picture

Title: Manuel delete with FID not working » Manual delete with FID not working if file already missing (fileusageinterface error)
myLies’s picture

Yes, 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

myLies’s picture

Status: Active » Needs review
labboy0276’s picture

Thanks 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.

labboy0276’s picture

Status: Needs review » Closed (won't fix)

One 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.

HongPong’s picture

labboy0276 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.

labboy0276’s picture

ok i added it