简体   繁体   中英

Symfony2 Prod / blank page : “Unable to load class ”Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager"

I'm facing an issue in PROD with my Symfony2 project, and I got a Blank page, I tried stuff like cache:clear --env=prod, updating with composer, setting up Permissions for app/cache & app/logs but it does not work at all, I still got a blank page.

My Symfony/logs are clean, but here is my nginx error.log file :

2014/01/03 13:31:06 [error] 22357#0: *28014 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'Unable to load class "Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager"' in /var/www/mysfproject/myfolder/vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php:259
Stack trace:
#0 /var/www/mysfproject/myfolder/vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php(98): Symfony\Component\ClassLoader\ClassCollectionLoader::getOrderedClasses(Array)
#1 /var/www/mysfproject/myfolder/app/bootstrap.php.cache(2375): Symfony\Component\ClassLoader\ClassCollectionLoader::load(Array, '/var/www/epipor...', 'classes', true, false, '.php')
#2 /var/www/mysfproject/myfolder/app/bootstrap.php.cache(2211): Symfony\Component\HttpKernel\Kernel->doLoadClassCache('classes', '.php')
#3 /var/www/mysfproject/myfolder/app/bootstrap.php.cache(2245): Symfony\Component\HttpKernel\Kernel->boot()
#4 /var/www/mysfproject/myfolder/web/app.php(23): Symfony\Component\HttpKernel\Kernel->handl" while reading response header from upstream, client: xx.xxx.xxx.xxx, server: mywebsite.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mywebsite.com", referrer: "https://www.google.fr/"

Thanks for help !

I finally resolved my problem !

I only restarted nginx & php5-fpm !

service nginx restart
service php5-fpm restart

Hope this will help !

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM