Kristian Bowler Posted April 17, 2020 Share Posted April 17, 2020 Hi Everyone! Going through my new install of presta and all was going well! I clicked on clear cache and now I have lost all access to the admin back office! I still have FTP access! I enabled debug mode following an thread I found and it gives me the following errors: Quote (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/15/d824432326/htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php', 2636, array('class' => 'Doctrine\\ORM\\UnitOfWork', 'e' => 32767, 'file' => '/homepages/15/d824432326/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 1814 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/15/d824432326/htdocs/var/cache/dev')in CacheWarmerAggregate.php line 52 at CacheWarmerAggregate->warmUp('/homepages/15/d824432326/htdocs/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 I have no idea what this mean! Any help getting my store back would be appreciated or I've lost a good few weeks work and will have to do a fresh install! Thanks Link to comment Share on other sites More sharing options...
selectshop.at Posted April 17, 2020 Share Posted April 17, 2020 Which Prestashop version ? Which php-version in use ? The error is coming from a non compatible php-version you are using and the prestashop version in use. Try another php version. BTW PS 1.7. is not yet compatible with php 7.4 !!! https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/ Link to comment Share on other sites More sharing options...
idnovate.com Posted April 17, 2020 Share Posted April 17, 2020 You need to downgrade PHP version at least at 7.2: Link to comment Share on other sites More sharing options...
Kristian Bowler Posted April 17, 2020 Author Share Posted April 17, 2020 5 hours ago, selectshop.at said: Which Prestashop version ? Which php-version in use ? The error is coming from a non compatible php-version you are using and the prestashop version in use. Try another php version. BTW PS 1.7. is not yet compatible with php 7.4 !!! https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/ Hi! I'm on php version 7.3. My store was up and running working fine for 1 week! For some reason I just decided to click clear cache and now the back office doesn't work! The front end is fine however! I'm on the latest version of PS. Thanks again Link to comment Share on other sites More sharing options...
Kristian Bowler Posted April 17, 2020 Author Share Posted April 17, 2020 (edited) Okay I have downgraded my PHP version and the problem is still there! I can get into back office now but as soon as I disable debug mode I get Quote This page isn’t working xxxxx.co.uk is currently unable to handle this request. HTTP ERROR 500 Edited April 17, 2020 by Kristian Bowler (see edit history) Link to comment Share on other sites More sharing options...
idnovate.com Posted April 17, 2020 Share Posted April 17, 2020 So which PHP version do you have now? Which error appears when you enable DEBUG mode? Clear cache after disabling DEBUG mode. Link to comment Share on other sites More sharing options...
Kristian Bowler Posted April 17, 2020 Author Share Posted April 17, 2020 1 minute ago, idnovate.com said: So which PHP version do you have now? Which error appears when you enable DEBUG mode? Clear cache after disabling DEBUG mode. I'm on php version 7.2 now! As soon as I disable debug mode I cannot get into the backend to clear the cache. However I can now get into the backend with debug enabled. I have the following errors Link to comment Share on other sites More sharing options...
idnovate.com Posted April 17, 2020 Share Posted April 17, 2020 Rename folder /var/cache/prod. Link to comment Share on other sites More sharing options...
Kristian Bowler Posted April 17, 2020 Author Share Posted April 17, 2020 2 minutes ago, idnovate.com said: Rename folder /var/cache/prod. No success unfortunately Link to comment Share on other sites More sharing options...
chakerben Posted March 29, 2021 Share Posted March 29, 2021 clear all folders and files in /var/cache/ directory. 1 Link to comment Share on other sites More sharing options...
pcsk Posted November 30, 2021 Share Posted November 30, 2021 How it ends? Working now? Link to comment Share on other sites More sharing options...
idnovate.com Posted December 8, 2021 Share Posted December 8, 2021 On 11/30/2021 at 8:32 PM, pcwebslovakia said: How it ends? Working now? Do you have any problem? 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