KenFranklin Posted February 16, 2017 Share Posted February 16, 2017 (edited) Error in admin in debug mode -- FatalErrorException in classes.php line 1723: Compile Error: Cannot declare class Symfony\Component\Debug\ErrorHandler, because the name is already in use What to do? Edited February 16, 2017 by ken5 (see edit history) Link to comment Share on other sites More sharing options...
nohossattraore Posted March 5, 2017 Share Posted March 5, 2017 Hi, I had the same issue...found the answer here it's in French but it says to remove the classes.php and classes.map from the app/cache/dev folder 2 1 Link to comment Share on other sites More sharing options...
tom.tom Posted August 3, 2017 Share Posted August 3, 2017 Is this problem already solved permanently? I keep coming across this as well... Link to comment Share on other sites More sharing options...
Chaki_Black Posted October 2, 2017 Share Posted October 2, 2017 I had this problem only on one page in admin panel => product list. Interesting, that it worked on local machine but didn't on hosting server. The problem was in PHP version: it didn't want to work with PHP 5.6, but worked with PHP 7.1. So, change PHP version to highest and it should work. Link to comment Share on other sites More sharing options...
ctat17 Posted October 4, 2017 Share Posted October 4, 2017 Prestashop 1.7.2 - I am using VPS and have PHP version 7.2 I am getting this error while trying to access my admin section- when I set Debug to true. Whoops, looks like something went wrong. 1/1FatalErrorException in AdminLoginController.php line 400:Compile Error: Declaration of AdminLoginControllerCore::viewAccess() must be compatible with AdminControllerCore::viewAccess($disable = false)in AdminLoginController.php line 400 If I set have not set debug mode true, I get the following error on the home page also - ContextErrorException in posstaticblocks.php line 125:Warning: count(): Parameter must be an array or an object that implements Countable in posstaticblocks.php line 125 at ErrorHandler->handleError('2', 'count(): Parameter must be an array or an object that implements Countable', '/var/www/docs/glamstore/modules/posstaticblocks/posstaticblocks.php', '125', array('param' => array('smarty' => object(Smarty_Dev_Template), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '1'), 'id_shop' => '1', 'staticBlocks' => null)) in posstaticblocks.php line 125 at posstaticblocks->hookDisplayNav(array('smarty' => object(Smarty_Dev_Template), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '1')) in Hook.php line 895 at HookCore::coreCallHook(object(posstaticblocks), 'hookdisplayNav', array('smarty' => object(Smarty_Dev_Template), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '1')) in Hook.php line 327 at HookCore::callHookOn(object(posstaticblocks), 'displayNav', array('smarty' => object(Smarty_Dev_Template), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '1')) in Hook.php line 843 at HookCore::exec('displayNav', array('smarty' => object(Smarty_Dev_Template), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '1'), null) in smarty.config.inc.php line 168 at smartyHook(array('h' => 'displayNav'), object(Smarty_Dev_Template)) in SmartyLazyRegister.php line 83 at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayNav'), object(Smarty_Dev_Template))) in smarty_internal_templatebase.php(157) : eval()'d code line 397 at content_59d54771dba517_27165038(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php(157) : eval()'d code line 131 at content_59d54771e31260_99835487(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php line 188 at Smarty_Internal_TemplateBase->fetch('index.tpl', null, 'layouts/layout-full-width.tpl', object(SmartyDev), false, true, false) in SmartyDev.php line 41 at SmartyDev->fetch('index.tpl', null, 'layouts/layout-full-width.tpl') in FrontController.php line 660 at FrontControllerCore->smartyOutputContent('index.tpl') in FrontController.php line 644 at FrontControllerCore->display() in Controller.php line 225 at ControllerCore->run() in Dispatcher.php line 379 at DispatcherCore->dispatch() in index.php line 28 Please tell me what am I doing wrong or how can I resolve this issue. Link to comment Share on other sites More sharing options...
Nicolas Giraudo Posted October 9, 2017 Share Posted October 9, 2017 Hi thereI have something quite similarI just CAN'T enable a module I bought! I tried a billion times to do all I could (even delete module's id insertion in the database and clear cache), but there is still no way to make it works. I have this exception in my logs : [1] Symfony\Component\Debug\Exception\FatalErrorException: Compile Error: Cannot declare class ProductTemp, because the name is already in use at n/a in www/classes/module/Module.php(2968) : eval()'d code line 249 I think that's more an issue from Symfony than from PS The developer told me his module is famous and it's working pretty good and so he has no clue about what's going wrong with my config. He advised me to pay someone to look around my files but I don' want to for the moment. This post is my last solution "route_parameters": {"_controller": "PrestaShopBundle\\Controller\\Admin\\ModuleController::moduleAction", "action": "enable", "module_name": "opartdevis", "_route": "admin_module_manage_action" }, Thanks.. 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