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

Rules applied on (a lot of) existing transactions - Unrecoverable error #4200

Closed
ajoaris opened this issue Dec 30, 2020 · 3 comments
Closed
Labels
bug Verified and replicated bugs and issues. fixed Bugs that are fixed (in a coming release).

Comments

@ajoaris
Copy link

ajoaris commented Dec 30, 2020

Bug description
I am running Firefly III version x.x.x, and my problem is:
Created a new rule, trigger on a multiple string description. Transaction well selected when creating it. Applying it on existing transactions produced an unrecoverable error.

Whoops! An error occurred.
Unfortunately, this error was not recoverable :(. Firefly III broke. The error is:

Argument 1 passed to FireflyIII\Factory\CategoryFactory::setUser() must be an instance of FireflyIII\User, null given, called in /var/www/html/app/TransactionRules/Actions/SetCategory.php on line 58

Steps to reproduce
As described above.

Extra info

Bonus points

  • I searched and nobody reported this bug before
  • I have added a stack trace from my log files

|Layout | v1 |
| App environment | local |
| App debug mode | false |
| App cache driver | file |
| App logging | notice, stack |
| Display errors | Off |
| Error reporting | ALL errors |
| Interface | apache2handler |
| Default language | en_US |
| Default locale | equal |
| BCscale | 12 |
| DB drivers | mysql, pgsql, sqlite |
| Current driver | mysql |
| DB version | 15 (exp. 15) |
| Login provider | eloquent |
| Trusted proxies (.env) | |

User info Value
Session start 2020-12-01 00:00:00
Session end 2020-12-31 23:59:59
Session first 2019-09-25 00:00:00
User ID 1
User language en_US
User locale en_US
Attempt at "en_US.utf8" 'en_US.utf8'
Attempt at "en_US.UTF-8" 'en_US.UTF-8'
User agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15
@JC5
Copy link
Member

JC5 commented Dec 30, 2020

Could you extract a stacktrace from your logs please? I'm curious to learn where this code is called.

@JC5
Copy link
Member

JC5 commented Dec 30, 2020

Wait never mind, I can't read. Will be fixed in the next release but it's a symptom of underlying problems so I'm curious what will happen in the future.

JC5 added a commit that referenced this issue Dec 30, 2020
@JC5 JC5 added bug Verified and replicated bugs and issues. fixed Bugs that are fixed (in a coming release). labels Dec 30, 2020
@JC5
Copy link
Member

JC5 commented Jan 29, 2021

Fixed in the latest beta, I'm closing this for consistency's sake.

@JC5 JC5 closed this as completed Jan 29, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Verified and replicated bugs and issues. fixed Bugs that are fixed (in a coming release).
Projects
None yet
Development

No branches or pull requests

2 participants