Greetings,
I am self hosted. Trying to send recurring invoices. Whenever I run ‘php artisan ninja:send-invoices’ it creates the invoice but never actually sends it.
If I create the invoice and click SEND INVOICE it is received right away.
Any help you could provide would be greatly appreciated!
[root@invoice html]# /usr/bin/php /var/www/html/artisan -vvv ninja:send-invoices
2016-03-07 Running SendRecurringInvoices...
1 recurring invoice(s) found
Processing Invoice 24 - Should send YES
[ErrorException]
Trying to get property of non-object
Exception trace:
() at /var/www/html/app/Listeners/SubscriptionListener.php:50
Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() at /var/www/html/app/Listeners/SubscriptionListener.php:50
app\Listeners\SubscriptionListener->createdInvoice() at n/a:n/a
call_user_func_array() at /var/www/html/vendor/compiled.php:9441
Illuminate\Events\Dispatcher->Illuminate\Events\{closure}() at n/a:n/a
call_user_func_array() at /var/www/html/vendor/compiled.php:9394
Illuminate\Events\Dispatcher->fire() at /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php:651
event() at /var/www/html/app/Models/Invoice.php:767
App\Models\{closure}() at n/a:n/a
call_user_func_array() at /var/www/html/vendor/compiled.php:9394
Illuminate\Events\Dispatcher->fire() at /var/www/html/vendor/compiled.php:10122
Illuminate\Database\Eloquent\Model->fireModelEvent() at /var/www/html/vendor/compiled.php:10090
Illuminate\Database\Eloquent\Model->performInsert() at /var/www/html/vendor/compiled.php:10042
Illuminate\Database\Eloquent\Model->save() at /var/www/html/app/Ninja/Repositories/InvoiceRepository.php:626
app\Ninja\Repositories\InvoiceRepository->createRecurringInvoice() at /var/www/html/app/Console/Commands/SendRecurringInvoices.php:48
App\Console\Commands\SendRecurringInvoices->fire() at n/a:n/a
call_user_func_array() at /var/www/html/vendor/compiled.php:964
Illuminate\Container\Container->call() at /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php:115
Illuminate\Console\Command->execute() at /var/www/html/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
Symfony\Component\Console\Command\Command->run() at /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php:101
Illuminate\Console\Command->run() at /var/www/html/vendor/symfony/console/Symfony/Component/Console/Application.php:874
Symfony\Component\Console\Application->doRunCommand() at /var/www/html/vendor/symfony/console/Symfony/Component/Console/Application.php:195
Symfony\Component\Console\Application->doRun() at /var/www/html/vendor/symfony/console/Symfony/Component/Console/Application.php:126
Symfony\Component\Console\Application->run() at /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:94
Illuminate\Foundation\Console\Kernel->handle() at /var/www/html/artisan:36
[root@invoice html]#