Prestashop PHP 聪明错误

Prestashop PHP Smarty Errors

我的 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

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

看起来它是这个问题的副本,也许会有帮助

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

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

您可以尝试编辑这个文件:

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

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