Recurring invoice not created


I created a recurring invoice starting today and when I manually run the cronjob the new invoice is not created.

The command it does not give any error.

[user@server ~]$ php /home/user/public_html/ninja/artisan ninja:send-invoices
Thu, 02 Feb 2023 17:45:23 +0000 Running SendRecurringInvoices…

Any help would be appreciated.

ps. Have another ninja V4 install on the same hosting account with recurring invoices working fine.


Is that all you’re seeing when running the cron? I’d expect to see “Done” at the end.

Are there any errors in the logs?


No “Done” at the end. I tried again.

[root@server ~]# /opt/cpanel/ea-php74/root/usr/bin/php /home/user/public_html/spain/artisan ninja:send-invoices
Tue, 07 Feb 2023 18:07:28 +0000 Running SendRecurringInvoices...

If I enabled cronjob details I got an email with this:

Tue, 07 Feb 2023 03:10:12 +0000 Running SendRecurringInvoices...
Tue, 07 Feb 2023 03:10:13 +0000  Recurring invoice(s) found
Tue, 07 Feb 2023 03:10:13 +0000 0 recurring expenses(s) found
Tue, 07 Feb 2023 03:10:13 +0000 Done
Content-type: text/html; charset=UTF-8

Looks like is running ok.

Regarding the problem I was having, apparently if I create a recurring invoice that starts today and run the cron from the console it doesn’t work, it doesn’t create the invoice.

But, if I create the recurring invoice so that it starts tomorrow if it works. The invoice is created when the cron runs regularly the next day.