gray Posted September 22, 2019 Share Posted September 22, 2019 A strange exception during product edit. The error is: Property Product->description_short length (227) must be between 0 and 220 even though it displays "138 of 220 characters allowed" Then after trying to find the cause. I went into PS/debug Error message now is displayed on admin and I cannot get into Admin at all. Any ideas where the problem might be ? or a way to get out of debug mode without going into admin (as i am totally blocked). The following is the debug/error message in Admin (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/gbhortic/abc/123/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php', 2636, array('class' => 'Doctrine\\ORM\\UnitOfWork', 'e' => 32767, 'file' => '/home/gbhortic/abc/123/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 1811 at appDevDebugProjectContainer->getDoctrine_Orm_DefaultEntityManagerService()in getPrestashop_Translation_DatabaseLoaderService.php line 8 at require('/home/gbhortic/abc/123/var/cache/dev/ContainerCej8lde/getPrestashop_Translation_DatabaseLoaderService.php')in appDevDebugProjectContainer.php line 1707 at appDevDebugProjectContainer->load('getPrestashop_Translation_DatabaseLoaderService.php')in appDevDebugProjectContainer.php line 3726 at appDevDebugProjectContainer->ContainerCej8lde\{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('en-GB')in Translator.php line 314 at Translator->dumpCatalogue('en-GB', object(ResourceCheckerConfigCache))in Translator.php line 299 at Translator->Symfony\Component\Translation\{closure}(object(ResourceCheckerConfigCache))in ResourceCheckerConfigCacheFactory.php line 43 at ResourceCheckerConfigCacheFactory->cache('/home/gbhortic/abc/123/var/cache/dev/translations/catalogue.en-GB.L8dqxxF.php', object(Closure))in Translator.php line 300 at Translator->initializeCacheCatalogue('en-GB')in Translator.php line 265 at Translator->loadCatalogue('en-GB')in Translator.php line 241 at Translator->getCatalogue('en-GB')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 2381 at appDevDebugProjectContainer->getPrestashop_UserLocale_ListenerService()in appDevDebugProjectContainer.php line 2868 at appDevDebugProjectContainer->ContainerCej8lde\{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 Any ideas where the problem might be ? or a way to get out of debug mode without going into admin (as i am totally blocked). Link to comment Share on other sites More sharing options...
gray Posted September 22, 2019 Author Share Posted September 22, 2019 *PROBLEM SOLVED* It looks like I found the problem (I think). I was using PHP 7.3 Downgraded to 7.2 and i got different errors. Downgraded to 7.1 and I can now get into Admin with no errors, and also Front ene. So PS 1.7.6.1 is not compatible with PHP 7.3 or 7.2 despite what it says on https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/ 1 Link to comment Share on other sites More sharing options...
Julio N Posted April 20, 2020 Share Posted April 20, 2020 (edited) On 9/22/2019 at 12:01 PM, gray said: *PROBLEM SOLVED* It looks like I found the problem (I think). I was using PHP 7.3 Downgraded to 7.2 and i got different errors. Downgraded to 7.1 and I can now get into Admin with no errors, and also Front ene. So PS 1.7.6.1 is not compatible with PHP 7.3 or 7.2 despite what it says on https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/ Thanks, with Downgraded to 7.2 *PROBLEM SOLVED* Version 1.7.6.4 Edited April 20, 2020 by Julio N Change Version (see edit history) Link to comment Share on other sites More sharing options...
gray Posted April 20, 2020 Author Share Posted April 20, 2020 Hi - I am using PS1.7.6.4 but still with PHP7.1. As long as everything works, I am not going to upgrade to PHP7.2 or 7.3 Link to comment Share on other sites More sharing options...
ageselle Posted January 31, 2021 Share Posted January 31, 2021 got this as well, tried everything, then found this message, downgraded to 7.2, it fixed EVERYTHING!!! thank you gray! Link to comment Share on other sites More sharing options...
Gipielle Posted June 12, 2021 Share Posted June 12, 2021 I have the error with PHP 7.2, so i don't think is related to PHP version Link to comment Share on other sites More sharing options...
ageselle Posted June 12, 2021 Share Posted June 12, 2021 Hi, I "fixed" this by downloading the new version and doing the "manual" upgrade procedure: https://devdocs.prestashop.com/1.7/basics/keeping-up-to-date/upgrade/ 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