Jump to content

(Solucionado) Error al configurar Cache


Recommended Posts

Buenas noches,

Estando configurando mi web www.tiensol.es, en la parte donde se configura el Cache, al activarlo y guardarlo mi web se ha caido por completo y no puedo ni entrar en el back office.

¿Podeis orientarme por favor?

Esto es lo que me sale:

 

Whoops, looks like something went wrong.

(1/1) ContextErrorException

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

in UnitOfWork.php line 2665

at ErrorHandler->handleError(2, '"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?', '/homepages/36/d772194291/htdocs/clickandbuilds/PrestaShop/tiensol-prestashop/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php', 2665, array('class' => 'Doctrine\\ORM\\UnitOfWork', 'e' => 32767, 'file' => '/homepages/36/d772194291/htdocs/clickandbuilds/PrestaShop/tiensol-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 1813

at appDevDebugProjectContainer->getDoctrine_Orm_DefaultEntityManagerService()in getPrestashop_Translation_DatabaseLoaderService.php line 8

at require('/homepages/36/d772194291/htdocs/clickandbuilds/PrestaShop/tiensol-prestashop/var/cache/dev/ContainerLaqibbm/getPrestashop_Translation_DatabaseLoaderService.php')in appDevDebugProjectContainer.php line 1709

at appDevDebugProjectContainer->load('getPrestashop_Translation_DatabaseLoaderService.php')in appDevDebugProjectContainer.php line 3728

at appDevDebugProjectContainer->ContainerLaqibbm\{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('es-ES')in Translator.php line 314

at Translator->dumpCatalogue('es-ES', object(ResourceCheckerConfigCache))in Translator.php line 299

at Translator->Symfony\Component\Translation\{closure}(object(ResourceCheckerConfigCache))in ResourceCheckerConfigCacheFactory.php line 43

at ResourceCheckerConfigCacheFactory->cache('/homepages/36/d772194291/htdocs/clickandbuilds/PrestaShop/tiensol-prestashop/var/cache/dev/translations/catalogue.es-ES.L8dqxxF.php', object(Closure))in Translator.php line 300

at Translator->initializeCacheCatalogue('es-ES')in Translator.php line 265

at Translator->loadCatalogue('es-ES')in Translator.php line 241

at Translator->getCatalogue('es-ES')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 456

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 2383

at appDevDebugProjectContainer->getPrestashop_UserLocale_ListenerService()in appDevDebugProjectContainer.php line 2870

at appDevDebugProjectContainer->ContainerLaqibbm\{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

Edited by Jorge Garrido (see edit history)
Link to comment
Share on other sites

  • 1 month later...

Buenas tardes, 

Estoy parecido, estaba intentado averiguar la razón por la cual me da "error de autenticación" cada vez que alguien intenta registrarse, y me he encontrado con un error parecido al tuyo. ¿Qué has hecho exactamente?

(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"?', '/var/www/vhosts/balletandyou.com/pruebas.balletandyou.com/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php', 2636, array('class' => 'Doctrine\\ORM\\UnitOfWork', 'e' => 32767, 'file' => '/var/www/vhosts/balletandyou.com/pruebas.balletandyou.com/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 1815
at appDevDebugProjectContainer->getDoctrine_Orm_DefaultEntityManagerService()
in getPrestashop_Translation_DatabaseLoaderService.php line 8
at require('/var/www/vhosts/balletandyou.com/pruebas.balletandyou.com/var/cache/dev/ContainerRkabnnm/getPrestashop_Translation_DatabaseLoaderService.php')
in appDevDebugProjectContainer.php line 1711
at appDevDebugProjectContainer->load('getPrestashop_Translation_DatabaseLoaderService.php')
in appDevDebugProjectContainer.php line 3739
at appDevDebugProjectContainer->ContainerRkabnnm\{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('es-ES')
in Translator.php line 314
at Translator->dumpCatalogue('es-ES', object(ResourceCheckerConfigCache))
in Translator.php line 299
at Translator->Symfony\Component\Translation\{closure}(object(ResourceCheckerConfigCache))
in ResourceCheckerConfigCacheFactory.php line 43
at ResourceCheckerConfigCacheFactory->cache('/var/www/vhosts/balletandyou.com/pruebas.balletandyou.com/var/cache/dev/translations/catalogue.es-ES.L8dqxxF.php', object(Closure))
in Translator.php line 300
at Translator->initializeCacheCatalogue('es-ES')
in Translator.php line 265
at Translator->loadCatalogue('es-ES')
in Translator.php line 241
at Translator->getCatalogue('es-ES')
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 2385
at appDevDebugProjectContainer->getPrestashop_UserLocale_ListenerService()
in appDevDebugProjectContainer.php line 2872
at appDevDebugProjectContainer->ContainerRkabnnm\{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

Link to comment
Share on other sites

  • 3 months later...

Buenas,

Exactamente no recuerdo que fue lo que modifiqué, pero si tuve que entrar a través del gestor de archivos del servidor (Plesk o Cpanel, el que tengáis), buscar los ficheros que te dice el mensaje de error, y buscar cada linea donde te marca el error. El archivo o archivos a modificar son los que te indica el error que empieza la linea en "in".

Recuerdo que algunas lineas era cambiar algún valor, y recuerdo que otras lineas directamente las eliminaba.

Los paso que hice fueron:

1º Copia de seguridad del archivo a modificar.

2º Modificación de una de las lineas de error o eliminarla.

3º Volver a intentar entrar en la web y ver si ya no aparece esa linea modificada.

Siempre lo hacia una a una, para ver si la modificación que hacia corregía o no.

 

Espero que podáis solucionarlo.
Saludos.

Link to comment
Share on other sites

  • 2 months later...

Holabuenas noches

tengo este mismo error al tratar de ingresar al backoffice en el Hosting. 

Lo extraño es que en el servidor local si le activo el debug sucede lo mismo, genera el mismo texto pero en esa instalación si puedo ingresar sin problema al backoffice

Por favor necesito saber que hacer para poder ingresar al back office en el Hosting

la version de PHP utilizo es : 7.3.11

 

Alguien que me pueda orientar. gracias

descripcion del error:

 

(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"?', '/home/xxxxxxxxxxxxx/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php', 2636, array('class' => 'Doctrine\\ORM\\UnitOfWork', 'e' => 32767, 'file' => '/home/xxxxxxxxxxxxx/public_html/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 1823
at appDevDebugProjectContainer->getDoctrine_Orm_DefaultEntityManagerService()
in getPrestashop_Translation_DatabaseLoaderService.php line 8
at require('/home/xxxxxxxxxxxxx/public_html/var/cache/dev/ContainerJtaxavb/getPrestashop_Translation_DatabaseLoaderService.php')
in appDevDebugProjectContainer.php line 1719
at appDevDebugProjectContainer->load('getPrestashop_Translation_DatabaseLoaderService.php')
in appDevDebugProjectContainer.php line 3738
at appDevDebugProjectContainer->ContainerJtaxavb\{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('es-CO')
in Translator.php line 314
at Translator->dumpCatalogue('es-CO', object(ResourceCheckerConfigCache))
in Translator.php line 299
at Translator->Symfony\Component\Translation\{closure}(object(ResourceCheckerConfigCache))
in ResourceCheckerConfigCacheFactory.php line 43
at ResourceCheckerConfigCacheFactory->cache('/home/xxxxxxxxxxxxx/public_html/var/cache/dev/translations/catalogue.es-CO.L8dqxxF.php', object(Closure))
in Translator.php line 300
at Translator->initializeCacheCatalogue('es-CO')
in Translator.php line 265
at Translator->loadCatalogue('es-CO')
in Translator.php line 241
at Translator->getCatalogue('es-CO')
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 459
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 2393
at appDevDebugProjectContainer->getPrestashop_UserLocale_ListenerService()
in appDevDebugProjectContainer.php line 2880
at appDevDebugProjectContainer->ContainerJtaxavb\{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
 

 

 

Edited by Munozred (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...