Page 1 of 1
Error 500 for admin: ComposerAutoloaderInit.. not found
Posted: Thu Apr 06, 2023 4:51 pm
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

Re: Error 500 for admin: ComposerAutoloaderInit.. not found
Posted: Fri Apr 07, 2023 6:18 am
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
Re: Error 500 for admin: ComposerAutoloaderInit.. not found
Posted: Fri Apr 07, 2023 7:06 am
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.
Re: Error 500 for admin: ComposerAutoloaderInit.. not found
Posted: Fri Apr 07, 2023 7:09 am
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
Re: Error 500 for admin: ComposerAutoloaderInit.. not found
Posted: Fri Apr 07, 2023 7:10 am
by alexscj
Running the update again, breaks the /admin/ page again for some reason.
Re: Error 500 for admin: ComposerAutoloaderInit.. not found
Posted: Fri Apr 07, 2023 7:12 am
by admin
Send me ssh access to that domain plz
Re: Error 500 for admin: ComposerAutoloaderInit.. not found
Posted: Fri Apr 07, 2023 7:15 am
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
Re: Error 500 for admin: ComposerAutoloaderInit.. not found
Posted: Fri Apr 07, 2023 7:20 am
by alexscj
SSH sent.
Re: Error 500 for admin: ComposerAutoloaderInit.. not found
Posted: Fri Apr 07, 2023 7:38 am
by admin
ok