【问题标题】:Prestashop PHP Smarty ErrorsPrestashop PHP Smarty 错误
【发布时间】:2020-12-04 05:52:25
【问题描述】:

我的 error_log 文件不断被这个错误填满,我不知道是什么原因造成的。知道如何找到导致错误的原因吗?

[14-Aug-2020 13:20:32 Europe/Bucharest] PHP Fatal error:  Uncaught  --> Smarty: 0():Missing '$template' parameter <-- 
  thrown in /home/website/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php on line 177

【问题讨论】:

    标签: prestashop smarty


    【解决方案1】:

    这意味着在代码的某处有一个名为{$template} 的变量未定义。它可以是主题模板或模块 我会使用 IDE 来查找这个变量。如果这不起作用,就去调试技术,从 smarty 开始渲染的地方开始,直到它崩溃的地方:)

    看起来这个问题是重复的,也许会有所帮助

    SmartyException 0():Missing '$template' parameter with Prestashop

    【讨论】:

      【解决方案2】:

      这也可能是由于模块结构混乱,它的 ModuleFrontControllers 等造成的。

      您可以尝试编辑此文件:

      thrown in /home/website/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php on line 177

      并检查您是否可以记录有关错误、文件路径等的更多信息。

      【讨论】:

        猜你喜欢
        • 2017-06-11
        • 2016-09-28
        • 1970-01-01
        • 1970-01-01
        • 2011-03-21
        • 2015-12-04
        • 1970-01-01
        • 2012-11-16
        • 2019-08-12
        相关资源
        最近更新 更多