accounts with attachement in show page returns 500 error page
Support guidelines
- I'm smart and I read the support guidelines
Use of AI
- I'm a real person and wrote this bug without assistance from AI.
I've found a bug and checked that ...
- ... the documentation does not mention anything about my problem
- ... there are no open or closed issues that are related to my problem
- ... it's definitely a Firefly III issue, not me
Description
AI help me found the issue and temporary fix it. And my english is bad, so please, be comprehensive; as you don't want AI writing here :) !
When I want to see the details of an account with an attachment, I have an error page 500. Only those account have the issue, and when I remove the attachment from the database, it works ! After the fix, I uploaded a new attachement, and the 500 was there ! Removed it, and worked again !
Debug information
Firefly III - 500 Internal Server Error Oups ! Une erreur est survenue. Malheureusement, cette erreur n'a pas pu être récupérée :(. Firefly III s'est cassé. L'erreur est : FireflyIII\View\Components\Lists\Attachments::__construct(): Argument #1 ($attachments) must be of type Illuminate\Support\Collection|array, string given, called in /var/www/html/vendor/laravel/framework/src/Illuminate/View/Component.php on line 111 (View: /var/www/html/resources/views/accounts/show.blade.php) Cette erreur s'est produite dans le fichier /var/www/html/app/View/Components/Lists/Attachments.php à la ligne 39 avec le code 0.
Steps to reproduce
add attachement to any account !
Additional info
v 6.7.2, docker with tag latest, using an external mariadb11 in another container
Source: firefly-iii/firefly-iii