Can't send invoice. "Missing taxtotal taxsubtotal" error


I am running a self-hosted Invoice Ninja on Debian Jessie.

When create an invoice, I can’t send it via email, I get a popup error

There was an error saving your invoice
Internal Server Error

In debug console, I see this error message:

[03:23:01] LOG.error: ***InvalidArgumentException*** [0] : /var/www/html/vendor/cleverit/ubl_invoice/src/classes/TaxTotal.php [Line 59] => Missing taxtotal taxsubtotal
 {"context":"PHP","user_id":1,"account_id":1,"user_name":"My Name","method":"POST","url":"https:\/\/\/invoices","previous":"https:\/\/\/invoices\/create","user_agent":"Mozilla\/5.0 (X11; Linux x86_64; rv:57.0) Gecko\/20100101 Firefox\/57.0","ip":"xx.xx.xx.xx","count":6,"is_console":"no","is_api":"no","db_server":"mysql"}

I already have a 20% tax and it is selected in my invoice. I have tried to adjusted the options in Settings -> Tax Rates and purged the data but still get this problem.

Do you have any suggestions to solve this problem? Thank you!

sounds like you are missing the package. run composer install

I think this is a bug with our new UBL feature, disabling it on /settings/email_settings may help.

We’ll include a fix with our next release.