I have a website running perfectly on my local valet or plain php -S
.
But when I upload the website to the server, I get the following error:
Fatal error: Uncaught Error:
ClassComposerAutoloaderInitc23f66edbdd29a34175a5670c4a18687
not found in./vendor/autoload.php:7
Stack trace:
#0./kirby/bootstrap.php(21): include()
#1./index.php(3): require('kirby/bootstrap.php')
#2{main} thrown in ./vendor/autoload.php on line 7
(I replaced my server path with ./
)
I checked more then 50 times that PHP versions are both the same (8.0.12) and that the whole website (including content, kirby folder, vendor folder, …) is 100% identical. That weird class ComposerAutoloaderInit...
is also present.
I have Kirby 3.6, used composer to install and my index.php
looks like that:
require __DIR__ . '/kirby/bootstrap.php';
echo (new Kirby())->render();
I also checked the file permissions on the server, it’s all 777. I deleted and reinstalled everything 20 times. There is really nothing left I could imagine causing this issue.
Has anyone any idea how to solve it?