Jump to content

Error - FatalErrorException in classes.php line 1723


KenFranklin

Recommended Posts

  • 3 weeks later...
  • 4 months later...
  • 1 month later...

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

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)

 

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
  1. in posstaticblocks.php line 125
  2. 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
  3. at posstaticblocks->hookDisplayNav(array('smarty' => object(Smarty_Dev_Template), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '1')) in Hook.php line 895
  4. 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
  5. 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
  6. 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
  7. at smartyHook(array('h' => 'displayNav'), object(Smarty_Dev_Template)) in SmartyLazyRegister.php line 83
  8. at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayNav'), object(Smarty_Dev_Template))) in smarty_internal_templatebase.php(157) : eval()'d code line 397
  9. at content_59d54771dba517_27165038(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php(157) : eval()'d code line 131
  10. at content_59d54771e31260_99835487(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php line 188
  11. at Smarty_Internal_TemplateBase->fetch('index.tpl', null, 'layouts/layout-full-width.tpl', object(SmartyDev), falsetruefalse) in SmartyDev.php line 41
  12. at SmartyDev->fetch('index.tpl', null, 'layouts/layout-full-width.tpl') in FrontController.php line 660
  13. at FrontControllerCore->smartyOutputContent('index.tpl') in FrontController.php line 644
  14. at FrontControllerCore->display() in Controller.php line 225
  15. at ControllerCore->run() in Dispatcher.php line 379
  16. at DispatcherCore->dispatch() in index.php line 28

Please tell me what am I doing wrong or how can I resolve this issue.post-746381-0-43856200-1507149757_thumb.png

Link to comment
Share on other sites

Hi there
I have something quite similar
I 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...