I recently switched my Invoice Ninja, that is self-hosted, to another web host. I created a json and sql dump to be sure I wouldn’t lose any data. Once migrated to the new web host, I tried to import the json file for all my settings and data, but I’m unable to view my past invoices. When I go the invoices page, and a click on a old invoice, I get the error “Whoops, looks like something went wrong.”.
I tried also with the sql dump and I had the same issue. I can open/find all my other data (settings, quotation, expenses,…), but I’m not able to open the invoices. When I create a new invoice, that one works fine.
That was it! I was running a older version (4.5.34) and PHP 7.4 was selected as default.
I changed it to PHP 7.3 and it worked again. I will upgrade it later on, to be on the newest version.