Error 500 for admin: ComposerAutoloaderInit.. not found

Post Reply
alexscj
Posts: 160
Joined: Mon Apr 01, 2013 3:04 pm

Error 500 for admin: ComposerAutoloaderInit.. not found

Post by alexscj »

Hello, updated some older TCMS to 202304051153 and the TCMS admin doesn't open anymore with error 500:

Code: Select all

Got error 'PHP message: PHP Fatal error:  Uncaught Error: Class 'ComposerAutoloaderInit8e013329dd2f48cdd75ec54c03f412e1' not found in /...//includes/libs/vendor/autoload.php:7\nStack trace:\n#0 /...//includes/prepare.php(124): unknown()\n#1 /...//admin/index.php(3): unknown()\n#2 {main}\n  thrown in /...//includes/libs/vendor/autoload.php on line 7'

Code: Select all

php -v
PHP 7.3.33 (cli) (built: Nov 19 2021 05:11:49) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.33, Copyright (c) 1998-2018 Zend Technologies
    with the ionCube PHP Loader + ionCube24 v10.3.9, Copyright (c) 2002-2019, by ionCube Ltd.
    with Zend OPcache v7.3.33, Copyright (c) 1999-2018, by Zend Technologies
/admin/test.php:

Code: Select all

php test.php 
phpinfo()
PHP Version => 7.3.33
....
Please advise :geek:
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Error 500 for admin: ComposerAutoloaderInit.. not found

Post by admin »

Please, copy

includes\libs\vendor\autoload.php

from a working copy or send me ssh , i'll fix it and I hope to find out how did you get the old file there
Don't forget to run script update
alexscj
Posts: 160
Joined: Mon Apr 01, 2013 3:04 pm

Re: Error 500 for admin: ComposerAutoloaderInit.. not found

Post by alexscj »

Thanks for the solution!

Copying only \..\includes\libs\vendor\autoload.php didn't help.

Content of \..\includes\libs\vendor\ was significantly different between JAN 2022 updates and APR 2023 updates. I replaced entire /vendor/ directory and this fixed the problem.
alexscj
Posts: 160
Joined: Mon Apr 01, 2013 3:04 pm

Re: Error 500 for admin: ComposerAutoloaderInit.. not found

Post by alexscj »

Filesize Error:: includes/libs/vendor/composer/ClassLoader.php is 14367, we expect it to be 16068, looks like the file has been modified, please check it

Filesize Error:: includes/libs/vendor/composer/InstalledVersions.php is 5630, we expect it to be 14991, looks like the file has been modified, please check it

Filesize Error:: includes/libs/vendor/composer/autoload_classmap.php is 232, we expect it to be 2074, looks like the file has been modified, please check it

Filesize Error:: includes/libs/vendor/composer/autoload_psr4.php is 631, we expect it to be 1843, looks like the file has been modified, please check it

Filesize Error:: includes/libs/vendor/composer/autoload_real.php is 1847, we expect it to be 2629, looks like the file has been modified, please check it

Filesize Error:: includes/libs/vendor/composer/autoload_static.php is 2055, we expect it to be 8007, looks like the file has been modified, please check it

Filesize Error:: includes/libs/vendor/composer/installed.php is 1550, we expect it to be 9633, looks like the file has been modified, please check it
alexscj
Posts: 160
Joined: Mon Apr 01, 2013 3:04 pm

Re: Error 500 for admin: ComposerAutoloaderInit.. not found

Post by alexscj »

Running the update again, breaks the /admin/ page again for some reason.
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Error 500 for admin: ComposerAutoloaderInit.. not found

Post by admin »

Send me ssh access to that domain plz
Don't forget to run script update
alexscj
Posts: 160
Joined: Mon Apr 01, 2013 3:04 pm

Re: Error 500 for admin: ComposerAutoloaderInit.. not found

Post by alexscj »

Running the update again restored the /vendor/ content:

Code: Select all

../includes/libs/vendor$ ls -1
ausi
autoload.php
composer
firebase
geoip2
google
guzzlehttp
maxmind
maxmind-db
monolog
paragonie
phpseclib
psr
ralouphie
symfony
On other updated TCMS that have no problems:

Code: Select all

../includes/libs/vendor$ ls -1
ausi
autoload.php
composer
geoip2
maxmind
maxmind-db
alexscj
Posts: 160
Joined: Mon Apr 01, 2013 3:04 pm

Re: Error 500 for admin: ComposerAutoloaderInit.. not found

Post by alexscj »

SSH sent.
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Error 500 for admin: ComposerAutoloaderInit.. not found

Post by admin »

ok
Don't forget to run script update
Post Reply