Not sending repeating invoices

I upgraded to the latest version of Invoice NInja and everything seams to work perfect except :

When I create a recurring invoice, I’m not able to send the recurring invoice. A new invoice is not created, not via the cron job and also not via ‘Send now’. The only way to create an invoice from the recurring invoice is using '‘duplicaat to invoice’ option.

It looks like the cronjob os running. I receive tis i mij e-mail :

2024-07-20 12:15:11 Running [queue-size-job] … 132.85ms DONE
2024-07-20 12:15:12 Running [Callback] … 71.51ms DONE

Send a test-mail or send a invoice is working, sending a recurring invoice is not creating an ivoice.

Please help / advice

Hi,

I suggest checking for errors in the logs.

Maybe you need to update your PHP CLI to v8.2?

I’m using PHP version 8.2.
Invoice Version : v5.10.11-C161

What error log should I check ? Invoice Ninja Log ?

The only problem I can notice the I only have 512 MB PHP Memory (Hoster Maximum)
Can that be the problem. It worked befor uograding to the latest version.

I don’t think the memory amount would be an issue.

All log files are listed here: 5.10 Updates taking more memory? - #6 by thirstyice

I installed a new, clean install of Invoice Ninja in a test environment but it seems a complete other version now :

image

The production environment is this version :

Now I’m realy confused. Please advise. I want my production environment to work.
I tried to check logs but I’m not allowed to enter /var/log.

I also upgraded php_memory to 2048 (via .htaccess) without luck.

I tryed PHP version 8.1, 8,2 and 8.3. without luck

If you can find error details in the logs it will help debug the problem.

Without error details it’s hard for us to help.

And the logs are in /var/log in the root of the server ?

I shared a comment above which includes paths to all logs I’m aware of.

Some are in /var/log but there are also logs in the project folder.

I see this error in the laravel.log

[2024-07-08 09:28:07] production.ERROR: Server error: POST https://pdf.invoicing.co/api/ resulted in a 502 Bad Gateway response:
error code: 502
{“userId”:2,“exception”:"[object] (Exception(code: 502): Server error: POST https://pdf.invoicing.co/api/ resulted in a 502 Bad Gateway response:
error code: 502
at /home/pperee/sub/{domainname}l/app/Services/Pdf/PdfService.php:106)
[stacktrace]

Also found this error : Call to undefined function App\DataMapper\iconv_strlen() (View: /home/pperee/sub/f{domainname}/resources/views/errors/404.blade.php) {“exception”:"[object] (Illuminate\View\ViewException(code: 0): Call to undefined function App\DataMapper\iconv_strlen() (View: /home/pperee/sub/{domainname}/resources/views/errors/404.blade.php) at /home/pperee/sub/{domainname}/app/DataMapper/ClientSettings.php:99)

Should I switch to version 14.04 ? (What is the difference)

I suggest checking the iconv PHP extension is enabled.

It is active.

image

I cleared the laravel.log file (made a copy of the old file).
The I tryed to send a recurring invoice. (2x)
There was no (error) entry in the log file.

After trying to send the recurring invoice, a popup is show saying, “The invoice is send”. But it isn’t send and no invoice is created.

Have you checked the other error logs as well?

Also, is the queue enabled?

Looks like the queue is not enabled. How can I enable the queue ?

image

That won’t be the problem, if the queue is disabled the app should still send.

Checked the php error log but no entry related to the domain containing invoice ninja. It worked before but after upgrading to the latest version, it stop working.

Have you checked /var/log/messages and the worker log?

Out of the office now. Tomorrow I Wil try to check that log if I have access to it. I’m using a shared hosting abo at the server of a hoster.