Good afternoon, white-label self hoster here,
So for quite a bit of time now I’ve been trying to migrate to V5. I initially had it setup on simple cPanel hosting like my V4 is, and now I’m currently utilizing Cloudron to manage several apps including V5. My migration has failed over and over and I dug for awhile to try and find solutions to the errors. At some point I found a post talking about commenting out ‘documents’ => $this->getDocuments(), and ‘ninja_tokens’ => $this->getNinjaToken(), in StepsController.php
This did enable the migration to go through mostly I think but not correctly. I wasn’t sure as I never received an email. I wiped my V5 and ran the migration a few more times to see if I could get it to work, and near the end I did get an email saying migration failed stating: Undefined index: ninja_tokens
I’m guessing that has something to do with commenting out those two lines. When I look at the log of the partly done migration it stops at getting documents. In my V5, it seems like most of the data is there, but obviously its not complete. I tried processing an open invoice and am getting an error that no customer can be found. I’m not sure what to do.
Original errors:
(1/2) ErrorExeption - Trying to get property ‘contact_id’ of non object in GenerateMigrationResources.php line 364.
at HandleExceptions->handleError(8, ‘Trying to get property ‘contact_id’ of non-object’, /mydomain.com/app/Traits/GenerateMigrationResources.php’, 364, array(‘transformed’ => array(), ‘ninja_client’ => object(Client), ‘agts’ => object(Collection), ‘is_default’ => true, ‘agt’ => object(AccountGatewayToken), ‘payment_method’ => null))
(2/2)ErrorExeption - Undefined variable: completeService in StepsController.php in line 189
at HandleExceptions->handleError(8, ‘Undefined variable: completeService’, ‘/mydomain.com/app/Http/Controllers/Migration/StepsController.php’, 189, array(‘request’ => object(MigrationCompaniesRequest)))in StepsController.php line 189