错误单击总订户

时间:2017-10-31 13:11:50

标签: php prestashop-1.7

当我点击“总用户数”时,我使用的是CMD prestashop 1.7.2.4。 ,我有这个错误:

[PrestaShop] Fatal error in module file: /home/lecoindedg/www/app/bootstrap.php.cache:3224
Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function isUsingNewTranslationSystem() on boolean in /home/lecoindedg/www/controllers/admin/AdminModulesController.php:1403 Stack trace: #0 /home/lecoindedg/www/classes/controller/AdminController.php(2849): AdminModulesControllerCore->initModal() #1 /home/lecoindedg/www/classes/controller/Controller.php(186): AdminControllerCore->init() #2 /home/lecoindedg/www/classes/Dispatcher.php(379): ControllerCore->run() #3 /home/lecoindedg/www/admin792ivsbt0/index.php(95): DispatcherCore->dispatch() #4 {main} Next LogicException: Request stack is empty in /home/lecoindedg/www/app/bootstrap.php.cache:3224 Stack trace: #0 [internal function]: Symfony\Component\HttpKernel\HttpKernel->terminateWithException(Object(Symfony\Component\Debug\Exception\FatalThrowableError)) #1 /home/lecoindedg/www/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php(606): call_user_func(Array, Object(Symfony\Component\Debug\Exception\FatalThrowableE 

enter image description here

有任何线索吗?

1 个答案:

答案 0 :(得分:5)

我找到了解决方案:

在文件上:views / templates / hook / dashboard_zone_one.tpl

更改:

-               <span class="data_label"><a href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&amp;configure=blocknewsletter&amp;module_name=blocknewsletter">{l s='Total Subscribers' d='Modules.Dashactivity.Admin'}</a></span>
+               <span class="data_label"><a href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&amp;configure=ps_emailsubscription&amp;module_name=ps_emailsubscription">{l s='Total Subscribers' d='Modules.Dashactivity.Admin'}</a></span>

调整后的仪表板总订阅者链接指向ps_emailsubscription配置页面,而不是不再存在的blocknewsletter。