代码之家  ›  专栏  ›  技术社区  ›  Kikou

单击总订阅者时出错

  •  4
  • Kikou  · 技术社区  · 8 年前

    我正在使用CMD prestashop 1.7.2.4,当我单击“total subscriber”时,出现以下错误:

    [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 回复  |  直到 8 年前
        1
  •  6
  •   Kikou    8 年前

    我找到了一个解决方案:

    在文件上:views/templates/hook/dashboard\u zone\u one。第三方物流

    更改:

    -               <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配置页面,而不是不再存在的BlockNewslette。