Home Forums Support Trying to get property of non-object – self hosted 2.5.0.3

This topic contains 3 replies, has 2 voices, and was last updated by  Hillel Coren 3 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2450

    dogatemycomputer
    Participant

    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!

    [[email protected] 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
    
    [[email protected] html]# 
    
    #2451

    Hillel Coren
    Keymaster

    This will be fixed in our next release, for now you can patch it by replacing app/Listeners/SubscriptionListener.php with:

    https://raw.githubusercontent.com/invoiceninja/invoiceninja/master/app/Listeners/SubscriptionListener.php

    #2452

    dogatemycomputer
    Participant

    Hillel,

    You are a certain kind of awesome!

    I’ll apply the patch shortly.

    Thank you very much for your help!

    #2456

    Hillel Coren
    Keymaster

    🙂

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Posted in: