Closed LudovicRousseau closed 9 months ago
The albums all still have a favorite picture but this picture is no more used as the cover picture.
That sounds like a big hint.
The albums all still have a favorite picture but this picture is no more used as the cover picture.
That sounds like a big hint.
I don't know what is the expected behaviour.
Having 2 concepts: favorites pictures and album cover picture is a good idea. I guess a database upgrade did not worked as expected.
Expected behavior should be:
OK. So we have a problem. I have albums with NO cover picture at all.
In storage/logs/errors.log
I have:
[2024-01-13 16:12:35] production.ERROR: App\Actions\HoneyPot\BasePipe::throwNotFound:40 The route public/uploads/big could not be found.
[2024-01-13 16:12:40] production.ERROR: App\Actions\HoneyPot\BasePipe::throwNotFound:40 The route public/uploads/medium could not be found.
[2024-01-13 16:13:19] production.ERROR: App\Actions\HoneyPot\BasePipe::throwNotFound:40 The route public/uploads/thumb could not be found.
Does that help?
Can you see if you can replace line 43 of app/Models/Extensions/Thumb.php
with this:
$svAlbumThumbs = [SizeVariantType::SMALL, SizeVariantType::SMALL2X, SizeVariantType::THUMB, SizeVariantType::THUMB2X];
instead of:
$svAlbumThumbs = [SizeVariantType::SMALL, SizeVariantType::SMALL2X];
if that fixes it ?
Yes, problem fixed with your change.
Great then it means that those pictures did not have a small generated for them (which I find surprising). The thumb is a failover.
Detailed description of the problem
I migrated a system from Lychee 4.13.0 to 5.0.3. I can see my albums but they all lost their cover picture. The albums all still have a favorite picture but this picture is no more used as the cover picture. I need to select a picture as album cover picture to have a cover picture.
I note that I did not get this problem on another server. Maybe that is because I updated Lychee more frequently and the database was updated correctly.
For the problematic server the upgrade said:
I also discover that if a picture is the album cover picture I now see a new icon on the picture. On the 1st server that still have the album cover picture correctly configured I do NOT have this new icon. I only have the favorite icon and the picture is selected as the album cover picture.
On the 2nd server I see pictures with the favorite icon on them but they are NOT selected as album cover picture.
The 2 servers have different configuration:
Steps to reproduce the issue
It may be related to the previous state of my SQL database. I don't know how to reproduce.
Screenshots If applicable, add screenshots to help explain your problem.
Output of the diagnostics
Browser and system