blackpink Posted September 16, 2019 Share Posted September 16, 2019 Bonsoir, Je viens de changer mon theme et je me suis mis en mode "DEBUG" et je n'ai plus la possibilité d'accéder a mon admin il y a un message d'error que je ne peux enlever : j'ai vidé PRODUCT ET DEV dans le var/cache/. (1/1) 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/21/d780141553/htdocs/clickandbuilds/PrestaShop/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php', 2636, array('class' => 'Doctrine\\ORM\\UnitOfWork', 'e' => 32767, 'file' => '/homepages/21/d780141553/htdocs/clickandbuilds/PrestaShop/vendor/composer/../doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php'))in DebugClassLoader.php line 156 at require()in DebugClassLoader.php line 156 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 1820 at appDevDebugProjectContainer->getDoctrine_Orm_DefaultEntityManagerService()in Container.php line 306 at Container->get('doctrine.orm.default_entity_manager')in ManagerRegistry.php line 48 at ManagerRegistry->getService('doctrine.orm.default_entity_manager')in AbstractManagerRegistry.php line 231 at AbstractManagerRegistry->getManagers()in ProxyCacheWarmer.php line 49 at ProxyCacheWarmer->warmUp('/homepages/21/d780141553/htdocs/clickandbuilds/PrestaShop/var/cache/dev')in CacheWarmerAggregate.php line 52 at CacheWarmerAggregate->warmUp('/homepages/21/d780141553/htdocs/clickandbuilds/PrestaShop/var/cache/dev')in Kernel.php line 680 at Kernel->initializeContainer()in Kernel.php line 135 at Kernel->boot()in Kernel.php line 195 at Kernel->handle(object(Request), 1, false)in index.php line 86 Si vous pouviez m'aider merci d'avance Link to comment Share on other sites More sharing options...
couillaler Posted September 17, 2019 Share Posted September 17, 2019 Hello, Ceci ne répond pas à ta question, mais te permettra, peut-être, d'arriver au moins à retrouver ton BO. L'idée est de rebasculer en thème Classic, si c'est bien ton thème personnalisé qui posait souci. Via phpMyAdmin, ou tout autre gestionnaire de base de données auquel tu as accès, il faut chercher la table préfixe_shop (par exemple ps_shop), dans celle-ci, modifier la clef thème_name (qui doit contenir normalement le nom de ton thème [à retenir pour remettre après] en mettant le nom du thème par défaut de PS : classic. te revoilà donc avec le thème par défaut, et tu peux alors, peut-être, au moins retrouver ton admin... après, cela n'aura en rien résolu ton message d'erreur. Mais ça te redonne la main sur certaines choses peut-être... Antoine Link to comment Share on other sites More sharing options...
blackpink Posted September 17, 2019 Author Share Posted September 17, 2019 Je te remercie déjà bonne chose Link to comment Share on other sites More sharing options...
Harzach Posted October 24, 2020 Share Posted October 24, 2020 Bonjour le problème est-il résolu ? J'ai le même message d'erreur en prod chez infomaniak. Vincent Link to comment Share on other sites More sharing options...
Akhira Art Posted November 2, 2020 Share Posted November 2, 2020 Bonjour, moi aussi j'ai rencontré le même problème. Après avoir activé le mode Debug, le message erreur affiche : 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"?', '/htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php', 2636, array('class' => 'Doctrine\\ORM\\UnitOfWork', 'e' => 32767, 'file' => '/htdocs/vendor/composer/../doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php'))in DebugClassLoader.php line 156 at require()in DebugClassLoader.php line 156 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 1824 at appDevDebugProjectContainer->getDoctrine_Orm_DefaultEntityManagerService()in getPrestashop_Translation_DatabaseLoaderService.php line 8 at require('/htdocs/var/cache/dev/ContainerA1wjshm/getPrestashop_Translation_DatabaseLoaderService.php')in appDevDebugProjectContainer.php line 1713 at appDevDebugProjectContainer->load('getPrestashop_Translation_DatabaseLoaderService.php')in appDevDebugProjectContainer.php line 3748 at appDevDebugProjectContainer->ContainerA1wjshm\{closure}()in ServiceLocator.php line 64 at ServiceLocator->get('prestashop.translation.database_loader')in Translator.php line 141 at Translator->initialize()in Translator.php line 127 at Translator->initializeCatalogue('fr-FR')in Translator.php line 314 at Translator->dumpCatalogue('fr-FR', object(ResourceCheckerConfigCache))in Translator.php line 299 at Translator->Symfony\Component\Translation\{closure}(object(ResourceCheckerConfigCache))in ResourceCheckerConfigCacheFactory.php line 43 at ResourceCheckerConfigCacheFactory->cache('/htdocs/var/cache/dev/translations/catalogue.fr-FR.L8dqxxF.php', object(Closure))in Translator.php line 300 at Translator->initializeCacheCatalogue('fr-FR')in Translator.php line 265 at Translator->loadCatalogue('fr-FR')in Translator.php line 241 at Translator->getCatalogue('fr-FR')in Translator.php line 198 at Translator->trans('Successful deletion.', array(), 'AdminNotificationsSuccess', null)in PrestaShopTranslatorTrait.php line 57 at Translator->trans('Successful deletion.', array(), 'AdminNotificationsSuccess', null)in LoggingTranslator.php line 48 at LoggingTranslator->trans('Successful deletion.', array(), 'AdminNotificationsSuccess', null)in DataCollectorTranslator.php line 50 at DataCollectorTranslator->trans('Successful deletion.', array(), 'AdminNotificationsSuccess', null)in PrestaShopTranslatorTrait.php line 57 at DataCollectorTranslator->trans('Successful deletion.', array(), 'Admin.Notifications.Success', null)in Controller.php line 324 at ControllerCore->trans('Successful deletion.', array('legacy' => 'htmlspecialchars'), 'Admin.Notifications.Success')in AdminController.php line 466 at AdminControllerCore->__construct()in LegacyContext.php line 85 at LegacyContext->getContext()in UserLocaleListener.php line 39 at UserLocaleListener->__construct(object(LegacyContext))in appDevDebugProjectContainer.php line 2394 at appDevDebugProjectContainer->getPrestashop_UserLocale_ListenerService()in appDevDebugProjectContainer.php line 2881 at appDevDebugProjectContainer->ContainerA1wjshm\{closure}()in EventDispatcher.php line 229 at EventDispatcher->sortListeners('kernel.request')in EventDispatcher.php line 61 at EventDispatcher->getListeners('kernel.request')in ContainerAwareEventDispatcher.php line 128 at ContainerAwareEventDispatcher->getListeners('kernel.request')in TraceableEventDispatcher.php line 262 at TraceableEventDispatcher->preProcess('kernel.request')in TraceableEventDispatcher.php line 137 at TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent))in HttpKernel.php line 127 at HttpKernel->handleRaw(object(Request), 1)in HttpKernel.php line 68 at HttpKernel->handle(object(Request), 1, false)in Kernel.php line 200 at Kernel->handle(object(Request), 1, false)in index.php line 86 du coup, je ne peux plus accéder à mon espace BO, et le front office affiche la même chose !!!! Est-ce que vous avez réussi à régler ce problème? Par avance Merci. Link to comment Share on other sites More sharing options...
solsol69 Posted November 2, 2020 Share Posted November 2, 2020 Il y a 2 heures, Akhira Art a dit : Bonjour, moi aussi j'ai rencontré le même problème. Après avoir activé le mode Debug, le message erreur affiche : Bonjour Changer de version PHP https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/#php-compatibility-chart 1 Link to comment Share on other sites More sharing options...
Akhira Art Posted November 2, 2020 Share Posted November 2, 2020 Bonjour solsol69, merci beaucoup pour la réponse, je vais essayer. 😄 Link to comment Share on other sites More sharing options...
Harzach Posted November 3, 2020 Share Posted November 3, 2020 Bonjour j'ai résolu le problème. C'était bien un problème de cache, j'ai fait plusieurs fois l'opération (supprimer les fichiers dans var/cache/dev/ et var/cache/prod/ (car c'était les mêmes que ceux de localhost), et changer la version php en 7.2. Mon site et maintenant (presque) opérationnel . Presta 1.7.6.7 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