Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Budget page crash #8840

Closed
4 tasks done
JcMinarro opened this issue Apr 30, 2024 · 7 comments
Closed
4 tasks done

Budget page crash #8840

JcMinarro opened this issue Apr 30, 2024 · 7 comments
Labels
bug Verified and replicated bugs and issues. fixed Bugs that are fixed (in a coming release).

Comments

@JcMinarro
Copy link

Support guidelines

I've found a bug and checked that ...

Description

When I access to the Budget page, the app crash and show a "500 error".
It looks like it is due a division by zero on the template that is going to be rendered.
I'm just posting a screenshot (It is in Spanish, but I think it can help with the error)
Screenshot from 2024-04-30 10-10-05

It only happen when I go to Budget page selecting as the date range the current month.
If I access with a different date range, it works as expected

Debug information

Debug information generated at 2024-04-30 10:03:37 for Firefly III version v6.1.12.

System information
ItemValue
Firefly III6.1.12 / v2.0.12 / 23 (exp. 23)
PHP version8.3.4 (64bits) / apache2handler / Linux x86_64
BCscale12
Error reportingDisplay: Off, reporting: ALL errors
Max upload67108864 (64 MB)
Database drivers*mysql*, pgsql, sqlite,
Docker build#1037, base #82
Firefly III information
ItemValue
TimezoneEurope/Madrid + Europe/Madrid
App environmentlocal, debug: false
Layoutv1
Loggingnotice, stack / (empty)
Cache driverfile
Default language and localees_ES + equal
Trusted proxies**
Login provider & user guardeloquent / web
Login headersN/A + N/A
Stateful domains
Last cron job2024-04-29 22:00:00 (10 hours ago)
Mailerlog
User-specific information
ItemValue
User#1 of 1
User flags💳 🔧 📑 📧
Session start2024-04-01 00:00:00
Session end2024-04-30 23:59:59
View range1M
User languagees_ES
User localees_ES
Locale(s) supportedes_ES.utf8: ✅
es_ES.UTF-8: ✅
User agentMozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Expected behaviour

No response

Steps to reproduce

No response

Additional info

No response

@JC5
Copy link
Member

JC5 commented Apr 30, 2024

Nice find, I'll pick it up!

@JC5 JC5 added the bug Verified and replicated bugs and issues. label Apr 30, 2024
@JC5 JC5 added this to the firefly-iii-v6.1.16 milestone Apr 30, 2024
@JC5
Copy link
Member

JC5 commented Apr 30, 2024

Could you upgrade to the latest version of Firefly III first, please?

@NiklasMM
Copy link

I'm on 6.1.15 and get this error too.

When I click on budgets, I get 5 error emails. The first is about a division by zero error:

 Firefly III v6.1.15 has encountered an error: An exception has been thrown during the rendering of a template (‘Division by zero’).

The error was of type ‘ErrorException’.

The error occurred: Tue, 30 Apr 2024 20:59:04 +0200.

This error occurred in the file ‘/var/www/firefly-iii/resources/views/budgets/index.twig’ in line 322 with the code 0. 

The others seem to be follow up errors:

 Firefly III v6.1.15 has encountered an error: Unable to locate file in Vite manifest: resources/assets/v2/sass/app.scss. (View: /var/www/firefly-iii/resources/views/layout/v2/error.blade.php) (View: /var/www/firefly-iii/resources/views/layout/v2/error.blade.php).

The error was of type ‘Illuminate\View\ViewException’.

The error occurred: Tue, 30 Apr 2024 20:59:04 +0200.

This error occurred in the file ‘/var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Foundation/Vite.php’ in line 781 with the code 0. 

@JC5
Copy link
Member

JC5 commented May 1, 2024

Thanks! That gives me the line on which the error occurs. Still not good, but it allows me to pinpoint it.

For the second error, try running "php artisan view:clear".

@JC5
Copy link
Member

JC5 commented May 1, 2024

Alright, there is no division by anything on line 322. What happens when you run php artisan view:clear? It could be a weird cache thing.

@NiklasMM
Copy link

NiklasMM commented May 1, 2024

Ok running php artisan view:clear fixes both issues thanks!

@JC5 JC5 added the fixed Bugs that are fixed (in a coming release). label May 19, 2024
@JC5 JC5 closed this as completed May 19, 2024
Copy link
Contributor

Hi there! This is an automatic reply. Share and enjoy

This issue is now 🔒 closed. Please be aware that closed issues are not monitored by the developer of Firefly III.

  • If the original bug is not actually fixed, please open a new issue. Refer to this issue for clarity.
  • Follow-up questions must be posted in a new discussion
  • Further replies to this issue may get no response.

If there is more to discuss, please open a new issue or discussion.

Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified and replicated bugs and issues. fixed Bugs that are fixed (in a coming release).
Projects
Status: To do
Development

No branches or pull requests

3 participants