VB2095 Posted March 29, 2019 Share Posted March 29, 2019 (edited) Bonjour à tous, Je rencontre une erreur 500 qui n'est pas dû a l'HTACCESS ou autre possibilité. Lorsque j'active le mode debug j'ai ce message qui s'affiche sur ma boutique : Parse error: syntax error, unexpected 'finally' (T_STRING), expecting catch (T_CATCH) in /home/giovannizk/shop/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php on line 201 Voici le code exact où l'erreur se trouverait : /** * {@inheritdoc} */ public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) { $this->boot(); ++$this->requestStackSize; $this->resetServices = true; try { return $this->getHttpKernel()->handle($request, $type, $catch); } finally { --$this->requestStackSize; } } Que faire ? Merci Edited March 29, 2019 by VB2095 (see edit history) Link to comment Share on other sites More sharing options...
doekia Posted March 29, 2019 Share Posted March 29, 2019 Change la version php de ton hébergement, version minimale, 5.5 (5.6+ recommandé) Link to comment Share on other sites More sharing options...
VB2095 Posted March 29, 2019 Author Share Posted March 29, 2019 Bien vu ! Merci 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