baba888 Posted February 17, 2021 Share Posted February 17, 2021 (edited) Hello, Have you ever had this kind of errors with Prestashop 1.7.xx please? request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Compile Error: Cannot declare class Pst_Bannercmsblock, because the name is already in use" at /home/xxxxxxxxxxxx/public_html/override/modules/pst_bannercmsblock/pst_bannercmsblock.php line 35 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalErrorException(code: 0): Compile Error: Cannot declare class Pst_Bannercmsblock, because the name is already in use at /home/xxxxxxxxxxxx/public_html/override/modules/pst_bannercmsblock/pst_bannercmsblock.php:35)"} [] Thank you. Edited February 17, 2021 by benito1980 (see edit history) Link to comment Share on other sites More sharing options...
joseantgv Posted February 18, 2021 Share Posted February 18, 2021 You have the same class declared twice, probably at /modules/pst_bannercmsblock/ and /override/modules/pst_bannercmsblock/. Link to comment Share on other sites More sharing options...
baba888 Posted February 18, 2021 Author Share Posted February 18, 2021 (edited) thanks but why would this happen in prestashop? I would have expected that 1 module has a very specific class name. What is this override folder about please? Edited February 18, 2021 by benito1980 (see edit history) Link to comment Share on other sites More sharing options...
joseantgv Posted February 19, 2021 Share Posted February 19, 2021 hace 14 horas, benito1980 dijo: thanks but why would this happen in prestashop? I would have expected that 1 module has a very specific class name. What is this override folder about please? This is an error, of course The override class should be called different and extends from the original class https://stackoverflow.com/a/31008963/1136132 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