Anubis2702 Posted January 26, 2017 Share Posted January 26, 2017 Hello, I was translating a module and at some point stopped receiving "succesfully saved" notification about the translations. Then I refreshed the page and got HTTP 500 Error and the BO not working anymore. AH01071: Got error 'PHP message: PHP Fatal error: Cannot declare interface Symfony\\Component\\DependencyInjection\\ContainerAwareInterface, because the name is already in use in /var/www/vhosts/ladies-tailor.ro/httpdocs/app/cache/prod/classes.php on line 7247\n' The FO is working. Link to comment Share on other sites More sharing options...
des2006 Posted January 26, 2017 Share Posted January 26, 2017 I encountered similar situation several times. Have to re-install PS to solve problem. Also maybe some addons not compatible with PS 1.7. Should install default PS modules and test well before adding other addons. Link to comment Share on other sites More sharing options...
Anubis2702 Posted January 26, 2017 Author Share Posted January 26, 2017 (edited) Reinstalling PS is not an option. I removed this function: interface ContainerAwareInterface{public function setContainer(ContainerInterface $container = null);} from .../prod/classes.php and now the backoffice is working. What is this function for, what should I expect to not work anymore? Edited January 26, 2017 by Anubis2702 (see edit history) Link to comment Share on other sites More sharing options...
amerigeau Posted October 30, 2017 Share Posted October 30, 2017 Hello, here is the solution : https://www.arnaud-merigeau.fr/prestashop-1-7-resolu-cannot-redeclare-class-containerawareinterface/ 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