firefly-iii/firefly-iii · error · FireflyException

$e->getMessage()

Error message

$e->getMessage()

What it means

Error "$e->getMessage()" thrown in firefly-iii/firefly-iii.

Source

Thrown at app/Http/Controllers/Report/DoubleController.php:109

                ];
                ++$result[$key]['transactions'];
                $result[$key]['sum']       = bcadd((string) $journal['amount'], $result[$key]['sum']);
                $result[$key]['avg']       = bcdiv($result[$key]['sum'], (string) $result[$key]['transactions']);
                $result[$key]['avg_float'] = (float) $result[$key]['avg'];
            }
        }
        // sort by amount_float
        // sort temp array by amount.
        $amounts  = array_column($result, 'avg_float');
        array_multisort($amounts, SORT_ASC, $result);

        try {
            $result = view('reports.double.partials.avg-expenses', ['result' => $result])->render();
        } catch (Throwable $e) {
            Log::error(sprintf('Could not render reports.partials.budget-period: %s', $e->getMessage()));
            $result = sprintf('Could not render view: %s', $e->getMessage());

            throw new FireflyException($e->getMessage(), 0, $e);
        }

        return $result;
    }

    /**
     * @return string
     *
     * @throws FireflyException
     */
    public function avgIncome(Collection $accounts, Collection $doubles, Carbon $start, Carbon $end)
    {
        $expanded = $this->accountRepository->expandWithDoubles($doubles);
        $accounts = $accounts->merge($expanded);
        $spent    = $this->opsRepository->listIncome($start, $end, $accounts);
        $result   = [];
        foreach ($spent as $currency) {
            foreach ($currency['transaction_journals'] as $journal) {

View on GitHub (pinned to fd8791d08d)

When it happens

Trigger: Thrown at app/Http/Controllers/Report/DoubleController.php:109 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of firefly-iii/firefly-iii@fd8791d08d (2026-08-17). Data as JSON: /api/errors/73c45415af7e7674. Report an issue: GitHub.