Qr-code not showing in some invoices

Hi there,

I uploaded last week for the v5.7.24-C125 version and I’m having some invoices not showing the QR-code.

I tried the react web, Windows app, Android app… all the same.

I looked for some kind of relation between the No showing invoices but there’s nothing related, I need to correct that ASAP because I can’t receive those invoices from my clients.

Can someone help me?

Hi again,

I found what is causing the problem.

It’s related to the Swiss translation

I saw that the translation is finally working so I changed it to Swiss French, and now some invoices are not showing the QR-code. I changed back now and the QR-code is normal again.

So, there’s something wrong with the Swiss translation.

@david do you have ideas?

@cavetech

Can you inspect the logs please?

Assuming you are using Swiss QR Code, the issue may be a field/translation that is corrupting the generation of the QR Code.

Hi @david ,

The logs have nothing.

Yes, I use the Swss QR Code.
For the field, do I need to do something?

The strange is that is not all invoices without the QR code… Now is working, but I want to put back the Swiss translation.

if you add to the .env file

EXPANDED_LOGGING=true

you can try turning back on swiss translations, the output of any errors will be available in storage/logs/laravel.log or storage/logs/invoiceninja.log

Hi @david ,

Here is the error
[2023-10-03 16:36:21] production.INFO: The IBAN field is required
[2023-10-03 16:36:48] production.INFO: The BIC field is not present and may be a required fields for EPC QR codes

It doesn’t reconise the IBAN, for the BIC We don’t have this in Switzerland.

It sounds like you are using the EPC qr code generator, if you are generating swiss based QR codes you’ll want to use:

$swiss_qr

instead of

$sepa_qr_code or

Sorry @david,

But, I never used this $sepa_qr_code, I know that is something from France, we don’t have sepa here.

I always used the @swiss_qr

It must be something else.

@cavetech

I see the issue here, I have a fix in v5.7.27

Hi @david ,

I updated to v5.7.27 today and made some tests, the problem is still there, no qr code.

This is the lasts lines in the log file :

[2023-10-09 09:01:20] production.INFO: foreach() argument must be of type array|object, null given
[2023-10-09 09:01:20] production.INFO: The BIC field is not present and may be a required fields for EPC QR codes
[2023-10-09 09:01:20] production.INFO: The IBAN field is required
[2023-10-09 09:01:59] production.INFO: foreach() argument must be of type array|object, null given
[2023-10-09 09:01:59] production.INFO: The BIC field is not present and may be a required fields for EPC QR codes
[2023-10-09 09:01:59] production.INFO: The IBAN field is required
[2023-10-09 09:03:27] production.INFO: foreach() argument must be of type array|object, null given
[2023-10-09 09:03:27] production.INFO: The BIC field is not present and may be a required fields for EPC QR codes
[2023-10-09 09:03:27] production.INFO: The IBAN field is required
[2023-10-09 09:03:59] production.INFO: The BIC field is not present and may be a required fields for EPC QR codes
[2023-10-09 09:03:59] production.INFO: The IBAN field is required

Ill tag another release

1 Like

Hi @david .

Today, I updated to v5.7.30 and the problem’s sill there.

I also checked the difference between those with problem and the others, because is not all invoices with problems…
The invoices without the QR-code are from private people, when I have a society, the QR-code is there.
I don’t put a name in the “name” field when is a private person, I just add the contact information with the name of the person, so, I think there’s something blocking when there’s no name in that field.

I hope this helps.

Are there any new errors in the logs?

Hello @david

Almost the same…

[2023-10-17 06:44:17] production.INFO: The BIC field is not present and _may_ be a required fields for EPC QR codes  
[2023-10-17 06:44:17] production.INFO: The IBAN field is required  
[2023-10-17 06:44:35] production.INFO: The BIC field is not present and _may_ be a required fields for EPC QR codes  
[2023-10-17 06:44:35] production.INFO: The IBAN field is required  
[2023-10-17 06:44:46] production.INFO: foreach() argument must be of type array|object, null given  
[2023-10-17 06:44:46] production.INFO: The BIC field is not present and _may_ be a required fields for EPC QR codes  
[2023-10-17 06:44:46] production.INFO: The IBAN field is required  
[2023-10-17 06:44:58] production.INFO: The BIC field is not present and _may_ be a required fields for EPC QR codes  
[2023-10-17 06:44:58] production.INFO: The IBAN field is required  
[2023-10-17 06:45:09] production.INFO: foreach() argument must be of type array|object, null given  
[2023-10-17 06:45:10] production.INFO: The BIC field is not present and _may_ be a required fields for EPC QR codes  

Can you validate this by entering a client “name” and seeing if the QR code generates? if we can localize it to the exact field

Hi @david ,

I made more tests and no, is not the client name, there’s also some with a name field without the QR-Code.
I can’t find the difference between those who have the QR-code and those who haven’t.

In the logs file, there’s always those lines: (also in the french language)
[2023-10-18 08:40:11] production.INFO: The BIC field is not present and may be a required fields for EPC QR codes
[2023-10-18 08:40:11] production.INFO: The IBAN field is required

But, when the QR-code is not created, there’s also this line :
[2023-10-18 08:40:11] production.INFO: foreach() argument must be of type array|object, null given

@cavetech

I am tagging another release, I think I understand the exact issue here.

1 Like

Hi @david ,

I’m in v5.7.37 and the problem is still there, did you change something?

And the same errors are showing on the Log file.

@cavetech

Just to confirm. Has any of the recent releases fixes this issue for you?