Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Error in composer auto load after server reboot

Started by Vincent Fericelli 6 years ago · 1 replies · 821 views
6 years ago

I had a very stable website running for months and after a server reboot I have a strange error:

TXT
2020/03/27 02:08:27 [error] 2543#2543: *81 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Class 'Composer\Autoload\ComposerStaticInit3ca100a8fab39e9e5daefd9e83778204' not found in /var/www/html/SOMEWEBSITE/vendor/composer/autoload_real.php:33
Stack trace:
#0 /var/www/html/SOMEWEBSITE/vendor/autoload.php(7): ComposerAutoloaderInit3ca100a8fab39e9e5daefd9e83778204::getLoader()
#1 /var/www/html/SOMEWEBSITE/index.php(40): require('/var/www/html/k...')
#2 {main}
  thrown in /var/www/html/SOMEWEBSITE/vendor/composer/autoload_real.php on line 33" while reading response header from upstream, client: 192.168.0.254, server: kravclub.fr, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.3-fpm.sock:", host: "SOMEWEBSITE.com"

It was a hard reboot and I think something got corrupted. I fact I had to replace the whole /vendor directory to get rid of a syntax error in autoload_static.php.

I tried gpm self-upgrade then update without any effect.

last edited 03/27/20 by Vincent Fericelli
6 years ago

Don't what happened but I had to redeploy a complete grav directory to make it work.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 64 18 hours ago
Support · by Anna, 3 days ago
2 68 20 hours ago
Support · by Justin Young, 21 hours ago
1 35 21 hours ago
Support · by Duc , 1 week ago
2 71 6 days ago
Support · by Colin Hume, 1 week ago
2 63 6 days ago