Hello!
I’m trying to migrate our v5.5.70 to v5.6.28. I know, I know, it’s a bit old, but bear with me.
I set up the newer version fresh via git clone and typical installation steps and the React front end and that all worked fine.
Now for the data. I have ~40,000 invoices on the old version (which Flutter doesn’t like) and that makes the standard export feature not work so well with PHP timing out. So I did a mysql export of just the data in hopes of importing it into the new one. It mostly went well, with some hiccups with an index and migrations and invalid MAC (sync the APP_KEYs).
Now when I go to log in, I receive this 500 error:
production.ERROR: App\Transformers\CompanyTokenTransformer::transform(): Argument #1 ($company_token) must be of type App\Models\CompanyToken, null given, called in /usr/share/nginx/invoiceninja-test/vendor/league/fractal/src/Scope.php on line 407 {“userId”:1,“exception”:"[object] (TypeError(code: 0): App\Transformers\CompanyTokenTransformer::transform(): Argument #1 ($company_token) must be of type App\Models\CompanyToken, null given, called in /usr/share/nginx/invoiceninja-test.iitechno.com/vendor/league/fractal/src/Scope.php on line 407 at /usr/share/nginx/invoiceninja-test.iitechno.com/app/Transformers/CompanyTokenTransformer.php:41)
Chasing down the stack, if transform() is getting null, I can’t follow much further on where it’s coming from in the myriad of /vendor files.
Versions aside, what could be the suspects here? I’ve been pulling my hair out for days on this.
Thank you!