moiettoi Posted October 17 Share Posted October 17 Bonjour à tous, j'ai un PS 8.1.7 Php 7.4 chez ovh en "pro" et à chaque fois que je vide le cache, j'ai une erreur 500, j'ai activé le mode debug et j'ai ce message d'erreur : Avez-vous une idée d'où cela peut-il provenir ? Merci pour votre aide ErrorException HTTP 500 Internal Server Error Warning: require(/home/bklenkj/www/var/cache/dev/ContainerKSYPete/getApiPlatform_Listener_Exception_ValidationService.php): failed to open stream: No such file or directory Exception Stack Trace ErrorException in /home/bklenkj/www/var/cache/dev/ContainerKSYPete/appAppKernelDevDebugContainer.php (line 2527) in /home/bklenkj/www/var/cache/dev/ContainerKSYPete/appAppKernelDevDebugContainer.php require (line 2527) in /home/bklenkj/www/var/cache/dev/ContainerKSYPete/appAppKernelDevDebugContainer.php -> load (line 2904) in /home/bklenkj/www/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php -> ContainerKSYPete\{closure} (line 279) in /home/bklenkj/www/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php -> sortListeners (line 90) in /home/bklenkj/www/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php -> getListeners (line 334) in /home/bklenkj/www/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php -> preProcess (line 162) in /home/bklenkj/www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php -> dispatch (line 229) in /home/bklenkj/www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php -> handleThrowable (line 120) in /home/bklenkj/www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php -> terminateWithException (line 129) in /home/bklenkj/www/vendor/symfony/symfony/src/Symfony/Component/ErrorHandler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 601) ErrorHandler->handleException(object(ErrorException)) Link to comment Share on other sites More sharing options...
moiettoi Posted October 18 Author Share Posted October 18 Je complète en précisant que l'erreur 500 arrive lorsque je vide le cahe la 1ere fois, puis la seconde tout revient à la normal. Link to comment Share on other sites More sharing options...
JPresta.com Posted October 18 Share Posted October 18 Si cela fonctionne la 2ème fois cela peut être causé par un timeout car supprimer le cache est souvent long. Ca arrive souvent en fait; personnellement je fais F5 pour relancer le nettoyage jusqu'à ce que l'erreur disparait. Link to comment Share on other sites More sharing options...
moiettoi Posted October 21 Author Share Posted October 21 Justetement, ce qui est curieux c'est que l'erreur 500 est affichée 2-3 secodnes après avoir cliqué et pas 30 ou 60 secondes. Puis la seconde fois ca focntionne normalement. Link to comment Share on other sites More sharing options...
JPresta.com Posted October 21 Share Posted October 21 Le cache "vie" pendant que vous essayez de le supprimer, il est possible qu'un fichier ou répertoire soit modifié/supprimé/créé entre le moment où il vérifie et le moment où il tente de faire un traitement qui provoque une erreur 500. Au début j'étais comme vous, cela m'inquiétait, maintenant je recharge simplement jusqu'à ce que ça fonctionne 🙂 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now