I've just downloaded a quite old image (uploaded probably with cpg1.3).
I got a message stating that the original/medium/thumb JPG files have been deleted, but the "image" couldn't be removed.
In fact, now the album displays an empty token for the deleted image. It also displays the total visits (73), as shown in the attached file (2.PNG).
I tried to search for the pid of the image (173) in the cpg_pictures sql table, but I couldn't find anything, as shown in the other attached file (1.PNG). PIDs 172 and 174 are present, but 173 isn't, which should be the expected behaviour, if one deletes that image.
I also tried a wider research in the sql dbase, but it didn't give any results for that pid:
USING utf8 ) LIKE '%173%'
ORDER BY `cpg_pictures`.`pid` ASC
LIMIT 0 , 30
In order to solve this, I manually had to type the URL of the (partially) deleted image, and click on DELETE FILE another time. It still said that it couldn't remove the image from the album, as shown in attachment 3.PNG, but it eventually removed the empty token from the thumbnails list.
I'm pretty sure that this doesn't happen with pics uploaded recently with cpg 1.5, because I've deleted some images in the last months, and no empty token remained in the thumbnails list.