Import XML E-Invoice results in Server Error

Version v5.10.33

Environment VPS

Checklist

  • Can you replicate the issue on our v5 demo site?
    Yes
  • Have you searched existing issues?
    Yes
  • Have you inspected the logs in storage/logs/laravel.log for any errors?
    Yes

Describe the bug

I want to import an X-Invoice using the XML import tool of the expenses tab but it doesn’t want to import my uploaded xml file. I tried changing the e-invoice format and also tried different xml invoices but the import never works.

Steps To Reproduce

  • Create an e-invoice on a page like this one.
  • activate e-invoice in the settings and select the correct format
  • navigate to expenses
  • hit import
  • upload the xml file
  • hit import
  • message: “something went wrong”

Expected Behavior

successful import of the e-invoice

Logs

production.ERROR: Call to a member function getMimeType() on array {"userId":1,"exception":"[object] (Error(code: 0): Call to a member function getMimeType() on array at /var/www/app/app/Http/Controllers/ExpenseController.php:650)

I see the issue here, tagging a new release now.

1 Like

Thanks for the quick fix. I will try again as soon as the docker image is available.

Amazing, it works. Thanks again!