500 errors after updating to v4.5.39

Following an update my installation is throwing 500 errors. The http log contains the following:

[Wed May 19 14:16:05.920795 2021] [fcgid:warn] [pid 2630:tid 140357257193216] [client 2.30.197.115:64560] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Class 'Composer\\Autoload\\ComposerStaticInitae05fd598290afd036f854d9586e8fd6' not found in /home/[username]/ninja.jamestopp.com/vendor/composer/autoload_real.php:30
[Wed May 19 14:16:05.920932 2021] [fcgid:warn] [pid 2630:tid 140357257193216] [client 2.30.197.115:64560] mod_fcgid: stderr: Stack trace:
[Wed May 19 14:16:05.920958 2021] [fcgid:warn] [pid 2630:tid 140357257193216] [client 2.30.197.115:64560] mod_fcgid: stderr: #0 /home/[username]/ninja.jamestopp.com/vendor/autoload.php(7): ComposerAutoloaderInitae05fd598290afd036f854d9586e8fd6::getLoader()
[Wed May 19 14:16:05.920981 2021] [fcgid:warn] [pid 2630:tid 140357257193216] [client 2.30.197.115:64560] mod_fcgid: stderr: #1 /home/[username]/ninja.jamestopp.com/bootstrap/autoload.php(20): require('/home/ninja_201...')
[Wed May 19 14:16:05.921003 2021] [fcgid:warn] [pid 2630:tid 140357257193216] [client 2.30.197.115:64560] mod_fcgid: stderr: #2 /home/[username]/ninja.jamestopp.com/public/index.php(20): require('/home/ninja_201...')
[Wed May 19 14:16:05.921024 2021] [fcgid:warn] [pid 2630:tid 140357257193216] [client 2.30.197.115:64560] mod_fcgid: stderr: #3 {main}
[Wed May 19 14:16:05.921045 2021] [fcgid:warn] [pid 2630:tid 140357257193216] [client 2.30.197.115:64560] mod_fcgid: stderr:   thrown in /home/[username]/ninja.jamestopp.com/vendor/composer/autoload_real.php on line 30

Any help gratefully received.

Hi,

It looks like you may have downloaded the zip from GitHub without running composer install.

Thanks. I thought I had downloaded it from https://download.invoiceninja.com/ - is this correct? Composer isn’t available to me on my shared hosting platform so I need the complete zip file.

Have tried re-downloading from the above link and reinstalling. Same errors persist.

Yes, that should be the correct file to download.

Sorry, not sure. Maybe try setting up a new install and copying over the DB and .env file?

Schoolboy error: I was allowing the file to unzip into a folder “ninja” within the root directory rather than unzipping and moving across. All fixed now.

I’m trying to understand from the docs and it’s not quite clear: Does version 5 require composer or can it still be installed from the zip file in the same way as v4?

v5 is the same as v4 in this regard, you can either use the zip (which has the vendor files) or composer.

1 Like