Lynda Posted December 9, 2019 Share Posted December 9, 2019 Bonjour. Lorsque je clique sur Module manager dans le BO, j'ai l'erreur 500 ci-dessous. Je ne comprends pas d'où ça vient. Pouvez-vous m'aider ? Merci beaucoup. ContextErrorException Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in UnitOfWork.php line 2636 at ErrorHandler->handleError(2, '"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?', '/homepages/14/d450210053/htdocs/production/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php', 2636, array('file' => '/homepages/14/d450210053/htdocs/production/vendor/composer/../doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php'))in ClassLoader.php line 444 at include()in ClassLoader.php line 444 at Composer\Autoload\includeFile('/homepages/14/d450210053/htdocs/production/vendor/composer/../doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php')in ClassLoader.php line 322 at ClassLoader->loadClass('Doctrine\\ORM\\UnitOfWork')in DebugClassLoader.php line 159 at DebugClassLoader->loadClass('Doctrine\\ORM\\UnitOfWork') at spl_autoload_call('Doctrine\\ORM\\UnitOfWork')in EntityManager.php line 160 at EntityManager->__construct(object(Connection), object(Configuration), object(ContainerAwareEventManager))in EntityManager.php line 850 at EntityManager::create(object(Connection), object(Configuration))in appDevDebugProjectContainer.php line 1331 at appDevDebugProjectContainer->getDoctrine_Orm_DefaultEntityManagerService()in appDevDebugProjectContainer.php line 1417 at appDevDebugProjectContainer->getPrestashop_Adapter_DataProvider_ModuleService()in appDevDebugProjectContainer.php line 1761 at appDevDebugProjectContainer->getPrestashop_Twig_Extension_HookService()in appDevDebugProjectContainer.php line 1972 at appDevDebugProjectContainer->getTwigService()in appDevDebugProjectContainer.php line 1856 at appDevDebugProjectContainer->getProfilerService()in appDevDebugProjectContainer.php line 2858 at appDevDebugProjectContainer->getProfilerListenerService()in appDevDebugProjectContainer.php line 2375 at appDevDebugProjectContainer->ContainerDqu5hjs\{closure}()in EventDispatcher.php line 145 at EventDispatcher->removeListener('kernel.exception', array(object(ExceptionListener), 'onKernelException'))in ContainerAwareEventDispatcher.php line 96 at ContainerAwareEventDispatcher->removeListener('kernel.exception', array(object(ExceptionListener), 'onKernelException'))in TraceableEventDispatcher.php line 75 at TraceableEventDispatcher->removeListener('kernel.exception', array(object(ExceptionListener), 'onKernelException'))in ExceptionListener.php line 82 at ExceptionListener->unregister(object(TraceableEventDispatcher))in Firewall.php line 92 at Firewall->onKernelFinishRequest(object(FinishRequestEvent))in FirewallListener.php line 57 at FirewallListener->onKernelFinishRequest(object(FinishRequestEvent), 'kernel.finish_request', object(TraceableEventDispatcher))in WrappedListener.php line 111 at WrappedListener->__invoke(object(FinishRequestEvent), 'kernel.finish_request', object(ContainerAwareEventDispatcher))in EventDispatcher.php line 212 at EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.finish_request', object(FinishRequestEvent))in EventDispatcher.php line 44 at EventDispatcher->dispatch('kernel.finish_request', object(FinishRequestEvent))in TraceableEventDispatcher.php line 143 at TraceableEventDispatcher->dispatch('kernel.finish_request', object(FinishRequestEvent))in HttpKernel.php line 210 at HttpKernel->finishRequest(object(Request), 1)in HttpKernel.php line 74 at HttpKernel->handle(object(Request), 1, false)in Kernel.php line 200 at Kernel->handle(object(Request), 1, false)in index.php line 88 Link to comment Share on other sites More sharing options...
lagui Posted December 9, 2019 Share Posted December 9, 2019 warning qui sort sous PHP 7.3. Link to comment Share on other sites More sharing options...
doekia Posted December 10, 2019 Share Posted December 10, 2019 Revenir en php7.1 Link to comment Share on other sites More sharing options...
Lynda Posted December 10, 2019 Author Share Posted December 10, 2019 Merci pour vos réponses. malheureusement, j'ai essayé de repasser dans des versions PHP antérieures et ça ne change rien. Ci joint les messages d'erreur que j'ai dans le BO et en FO. Link to comment Share on other sites More sharing options...
lagui Posted December 10, 2019 Share Posted December 10, 2019 Le changement de version n'a pas dû être effectif ou immédiat car ce warning n'existe qu'à partir de PHP 7.3 : https://www.php.net/manual/fr/control-structures.continue.php Link to comment Share on other sites More sharing options...
Lynda Posted December 19, 2019 Author Share Posted December 19, 2019 Bonjour. Je suis repassé en PHP 7.2, j'ai vidé le cache PS, et l'erreur 500 a bien disparue. Merci beaucoup pour votre aide. Ca veut dire qu'on est condamnés à rester en PHP 7.2 ? 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