Recurring invoices are not sent automatically

Version ie <v5.10.30>

5.11.3

Environment <Docker/Shared Hosting/Zip/Other>

Shared Hosting

Describe the bug

Recurring invoices are not sent automatically. Under “invoiceninja.log” only the following error can be recognized (I have only changed the mail address for data protection). Manual invoices are sent correctly. The problem therefore only exists when invoices are sent automatically.

Logs

[2024-12-20 04:00:07] production.INFO: Firing email for invoice RRE-2024-1332
[2024-12-20 04:00:07] production.INFO: Recurring invoice send duration 2024-12-20 04:00:04 - 2024-12-20 04:00:07
[2024-12-20 04:00:18] production.INFO: invoice
[2024-12-20 04:00:18] production.INFO: Trying to send to [email protected] 2024-12-2004:00:18
[2024-12-20 04:00:18] production.INFO: Using mailer => smtp
[2024-12-20 04:00:19] production.INFO: Mailer failed with Attempt to read property “client” on null
[2024-12-20 04:01:02] production.INFO: Subscription Cron 2024-12-20 04:01:02
[2024-12-20 04:01:03] production.INFO: Trying to send to [email protected] 2024-12-20 04:01:03
[2024-12-20 04:01:03] production.INFO: Using mailer => smtp
[2024-12-20 04:01:03] production.INFO: Mailer failed with Attempt to read property “client” on null
[2024-12-20 04:02:03] production.INFO: Trying to send to [email protected] 2024-12-20 04:02:03
[2024-12-20 04:02:03] production.INFO: Using mailer => smtp
[2024-12-20 04:02:03] production.INFO: Mailer failed with Attempt to read property “client” on null
[2024-12-20 04:04:02] production.INFO: Trying to send to [email protected] 2024-12-20 04:04:02
[2024-12-20 04:04:02] production.INFO: Using mailer => smtp
[2024-12-20 04:04:03] production.INFO: Mailer failed with Attempt to read property “client” on null
[2024-12-20 04:12:02] production.INFO: App\Jobs\Mail\NinjaMailerJob has been attempted too many times.

Hi,

I think it should help to update to the latest release.

I have now updated to 5.11.7 and will wait until the next recurring invoice is created.

1 Like