I have installed v4.5.23 via zip file and want to update to the last v4.x to prepare for v5. I have read that via zip install it should update automatically, but it doesn’t. So I have read more and came to https://invoiceninja.github.io/docs/self-host-updating.
Ok, the ninja folder belongs to www-data.
Ok, I have installed git.
What is the scheduler? Is that this one?
To upgrade from v4 you need to install v5 as a separate app and then use the migration tool in the latest version of v4 on Settings > Account Management.
Thanks for your time, hillel, very appreciated. So, let’s say, the folder was ninja4, I unpack v5 to ninja5, the new active folder will be ninja5 and ninja4 could be deleted if everything works?
Sorry, I don’t understand how to migrate. I would like to be able to migrate to the same domain and machine v4 is on. I have put v5 in the folder /var/www/html/ninja5, v4 resides in /var/www/html/ninja.
When pointing the webserver to /ninja5, it is like a new install, isn’t it? Or do I need to have a new domain for v5? So, when using the migration tool inside v4 I need to link to the new app domain? That couldn’t be the right migration way, couldn’t it?
If I have bill.gates.com (for example), I could do the migration still with bill.gates.com? Or do I need bill5.gates.com? How would the migration tool know if there is a second folder for v5?
[2021-03-05 11:04:38] production.ERROR: Trying to get property ‘id’ of non-object {“userId”:1,“exception”:"[object]
(ErrorException(code: 0): Trying to get property ‘id’ of non-object at /var/www/html/ninja5/app/Models/User.php:16
1) #0 /var/www/html/ninja5/app/Models/User.php(161): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(
8, ‘Trying to get p…’, ‘/var/www/html/n…’, 161, Array)