You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
I am running Firefly III version 5.2.1 (also on 5.0.5), and my problem is:
The export script for recurring transactions tries to format repeat_until instead of latest_date if latest_date exists, which will also raise an exception for calling format on a null field if repeat_until was not set.
Create a recurring transaction without setting a value for repeat_until
Trigger the cronjob to create one or more transactions
Try to export recurring transactions php artisan firefly-iii:export-data --export-recurring
This error is raised:
[2020-04-14 17:59:58] local.ERROR: Call to a member function format() on null {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Call to a member function format() on null at /var/www/firefly-iii/app/Support/Export/ExportDataGenerator.php:560)
[stacktrace]
#0 /var/www/firefly-iii/app/Support/Export/ExportDataGenerator.php(130): FireflyIII\\Support\\Export\\ExportDataGenerator->exportRecurring()
#1 /var/www/firefly-iii/app/Console/Commands/Export/ExportData.php(127): FireflyIII\\Support\\Export\\ExportDataGenerator->export()
#2 [internal function]: FireflyIII\\Console\\Commands\\Export\\ExportData->handle()
#3 /var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array(Array, Array)
#4 /var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Util.php(36): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#5 /var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#6 /var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#7 /var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php(590): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#8 /var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Console/Command.php(134): Illuminate\\Container\\Container->call(Array)
#9 /var/www/firefly-iii/vendor/symfony/console/Command/Command.php(255): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#10 /var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#11 /var/www/firefly-iii/vendor/symfony/console/Application.php(1001): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#12 /var/www/firefly-iii/vendor/symfony/console/Application.php(271): Symfony\\Component\\Console\\Application->doRunCommand(Object(FireflyIII\\Console\\Commands\\Export\\ExportData), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#13 /var/www/firefly-iii/vendor/symfony/console/Application.php(147): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#14 /var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#15 /var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(131): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#16 /var/www/firefly-iii/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#17 {main}
"}
In ExportDataGenerator.php line 560:
[Symfony\Component\Debug\Exception\FatalThrowableError]
Call to a member function format() on null
Exception trace:
at /var/www/firefly-iii/app/Support/Export/ExportDataGenerator.php:560
FireflyIII\Support\Export\ExportDataGenerator->exportRecurring() at /var/www/firefly-iii/app/Support/Export/ExportDataGenerator.php:130
FireflyIII\Support\Export\ExportDataGenerator->export() at /var/www/firefly-iii/app/Console/Commands/Export/ExportData.php:127
FireflyIII\Console\Commands\Export\ExportData->handle() at n/a:n/a
call_user_func_array() at /var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:32
Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() at /var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Util.php:36
Illuminate\Container\Util::unwrapIfClosure() at /var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:90
Illuminate\Container\BoundMethod::callBoundMethod() at /var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:34
Illuminate\Container\BoundMethod::call() at /var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Container/Container.php:590
Illuminate\Container\Container->call() at /var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Console/Command.php:134
Illuminate\Console\Command->execute() at /var/www/firefly-iii/vendor/symfony/console/Command/Command.php:255
Symfony\Component\Console\Command\Command->run() at /var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Console/Command.php:121
Illuminate\Console\Command->run() at /var/www/firefly-iii/vendor/symfony/console/Application.php:1001
Symfony\Component\Console\Application->doRunCommand() at /var/www/firefly-iii/vendor/symfony/console/Application.php:271
Symfony\Component\Console\Application->doRun() at /var/www/firefly-iii/vendor/symfony/console/Application.php:147
Symfony\Component\Console\Application->run() at /var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Console/Application.php:93
Illuminate\Console\Application->run() at /var/www/firefly-iii/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:131
Illuminate\Foundation\Console\Kernel->handle() at /var/www/firefly-iii/artisan:37
The text was updated successfully, but these errors were encountered:
Bug description
I am running Firefly III version 5.2.1 (also on 5.0.5), and my problem is:
The export script for recurring transactions tries to format
repeat_until
instead oflatest_date
iflatest_date
exists, which will also raise an exception for callingformat
on anull
field ifrepeat_until
was not set.I think this is the issue:
firefly-iii/app/Support/Export/ExportDataGenerator.php
Line 560 in a6ce294
Steps to reproduce
repeat_until
php artisan firefly-iii:export-data --export-recurring
The text was updated successfully, but these errors were encountered: