Reply
Highlighted
New Member
Posts: 30
Registered: ‎01-24-2016

UCRM invoice export to csv

 

I get the following error:

Fatal error: Uncaught TypeError: Argument 1 passed to App\Service\CsvGenerator::formatCountry() must be of the type integer, null given, called in /data/ucrm/data/plugins/invoice-csv-export/classes/Service/CsvGenerator.php on line 117 and defined in /data/ucrm/data/plugins/invoice-csv-export/classes/Service/CsvGenerator.php:121 Stack trace: #0 /data/ucrm/data/plugins/invoice-csv-export/classes/Service/CsvGenerator.php(117): App\Service\CsvGenerator->formatCountry(NULL, NULL) #1 /data/ucrm/data/plugins/invoice-csv-export/classes/Service/CsvGenerator.php(77): App\Service\CsvGenerator->formatClientAddress(Array) #2 /data/ucrm/data/plugins/invoice-csv-export/classes/Service/CsvGenerator.php(35): App\Service\CsvGenerator->getInvoiceLine(Array) #3 /data/ucrm/data/plugins/invoice-csv-export/public.php(48): App\Service\CsvGenerator->generate('ucrm-invoices.c...', Array) #4 {main} thrown in /data/ucrm/data/plugins/invoice-csv-export/classes/Service/CsvGenerator.php on line 121

 

Can it be caused by missing 'country' in some clients?

Thanks

 

Ubiquiti Employee
Posts: 1,259
Registered: ‎03-21-2016
Kudos: 198
Solutions: 145

Re: UCRM invoice export to csv

Hello @stefanormc, thank you for the report. Yes, it's most likely caused by missing country somewhere. We'll look into it.

Ubiquiti Employee
Posts: 1,259
Registered: ‎03-21-2016
Kudos: 198
Solutions: 145

Re: UCRM invoice export to csv

Hello @stefanormc, new version of the invoice CSV export plugin was just released fixing this bug, give it a try.

Reply