When you have a huge album (with thousands of photos), if you delete the album and the photos it contains...
... it may end up with missing photos. Meaning the files have been removed from filesystem, but the photo is still listed in the database.
We think it's because the file deletion occurs before the deletion of lines in tables. If there are too many files to delete, the PHP script takes too long and fails with timeout. The files are partly deleted and no line is removed from tables.
Solution : when there are too many photos in the album you want to delete, simply tell the user that photos will become orphans and can be removed from the Batch Manager.
When you have a huge album (with thousands of photos), if you delete the album and the photos it contains...
<img width="703" height="319" alt="Image" src="https://github.com/user-attachments/assets/78f40773-54bf-45c1-bd48-88112458abe5" />
... it may end up with missing photos. Meaning the files have been removed from filesystem, but the photo is still listed in the database.
We think it's because the file deletion occurs before the deletion of lines in tables. If there are too many files to delete, the PHP script takes too long and fails with timeout. The files are partly deleted and no line is removed from tables.
Solution : when there are too many photos in the album you want to delete, simply tell the user that photos will become orphans and can be removed from the Batch Manager.
<!-- github-sync-id:3499642688 -->
In Lightroom, we have to delete pictures BEFORE deleting the album. So it's maybe a better idea to explain and force user to delete the pictures first :)
In _Lightroom_, we have to delete pictures BEFORE deleting the album. So it's maybe a better idea to explain and force user to delete the pictures first :)
<!-- github-comment-id:3676023354 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
When you have a huge album (with thousands of photos), if you delete the album and the photos it contains...
... it may end up with missing photos. Meaning the files have been removed from filesystem, but the photo is still listed in the database.
We think it's because the file deletion occurs before the deletion of lines in tables. If there are too many files to delete, the PHP script takes too long and fails with timeout. The files are partly deleted and no line is removed from tables.
Solution : when there are too many photos in the album you want to delete, simply tell the user that photos will become orphans and can be removed from the Batch Manager.
In Lightroom, we have to delete pictures BEFORE deleting the album. So it's maybe a better idea to explain and force user to delete the pictures first :)