Server Type : Shared Hosting
Upgrade Method : InvoiceNinja internal App Upgrade
License : White Labeled User
PDF Server : Invoice Ninja Hosted PDF
Original InvoiceNinja Version : V5.3.66-W77
So when im upgrade it got error 500, when i check error in error log it says;
PHP Fatal error: Trait ‘Awobaz\Compoships\Compoships’ not found in app/Models/Company.php on line 29
The method i use is, i backup the .env file, and delete the whole folder, uploaded the fresh file, then extract, and put back the .env file
The the app running, BUT the already generated PDF cant be loaded (I didnt tried to generate new invoice to try).
So in this case, just maybe, what i need to do is Not to replace the whole folder content, maybe somebody can advice me, just what needed to be replace?
Thanks, this update has broken my install as well, but due to this thread and @NoobKS92 steps, I was able to get everything running quickly.
Here are my steps for ubuntu install:
In summary, moved the old install root to a .bc directory
downloaded and unzipped the latest version
coped .env and storage from the old directory to the new
chmod and chown the new directory as needed
run optimize and rebooted
back up and running.
P.S. Forgot to mention that I needed to reupload the company logo, as otherwise it would not show up on the PDFs.
5.3.68 to 5.3.73. It didn’t work when writing into the existing folder so I and had to move the existing install to a backup folder. Missed copying invoice documents/logo but otherwise Gene’s steps were perfect thanks.
Same here when updating from .68 to .74.
I downloaded - as with every update - invoiceninja-5.3.74.zip and manually uploaded the files with FTP. I don’t have sudo access to the shared hosting and can’t therefore perform the steps suggested by @NoobKS92 and @gene.
[2022-03-19 00:05:21] production.INFO: updating currencies
[2022-03-19 06:00:36] production.INFO: Performing Autobilling 2022-03-19 06:00:36
[2022-03-19 11:33:11] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:34:14] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:35:21] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:35:21] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:36:13] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:37:12] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:38:13] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:39:11] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:40:26] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:40:26] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:41:12] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:42:14] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:43:10] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:44:14] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:45:25] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:45:25] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:45:31] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:45:31] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:45:32] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:45:53] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:45:58] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:46:13] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:47:13] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:48:14] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:49:10] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:50:26] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:50:26] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:51:11] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:52:14] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:53:10] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:54:14] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:54:41] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:54:41] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
[2022-03-19 11:54:50] production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/sites/4a/0/02ec6ee49d/public_html/invoiceninja-v5/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
In my step, im simply upload the files to the invoice ninja directory, then extract the files there, which the system usually gonna replace any existing files that matches the files within the invoice ninja zip files. Im using shared, where hosting doesn’t allowed for me to use sudo too.
Hey @gene
Yes, I first downloaded and installed the source code file, but that didn’t work. Then I downloaded the full file including the vendor files but also got an error 500.
@amp51 my IN installations usually break (on two completely different shared hostings) when I do php artisan optimize. No idea why…
However, I think it should be possible to udpate InvoiceNinja without manual fixes via command line…
@gene
Thanks for your reply!
That’s the error log: IN5 error log - Pastebin.com
Regarding php artisan optimize: As far as I remember nothing special.
In the meantime, I went back to v5.3.68-W77 using a backup. I’m using InvoiceNinja in my productive workflow, so I cannot risk a completely destroyed installation…
Just tried to upgrade from v 5.3.68-W77 to v5.3.7.75 and had the same thing happen. Which brought me here. I restored and will try the manual update. Fingers crossed! Thanks for the tip.