Warm tip: This article is reproduced from serverfault.com, please click

Prestashop PHP Smarty Errors

发布于 2020-08-14 10:35:27

My error_log file keeps getting filled with this error and i don't know what is causing it. Any idea how i can find what is causing the error ?

[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
Questioner
Ciprian
Viewed
11
Arturas 2020-08-14 19:16:17

It means somewhere in the code there is a variable called {$template} which is not defined. It could be theme templates or modules I would use IDE to look for this variable. If this doesnt work just go for debuging technique, start where smarty starts rendering and go till place where it crashes :)

It looks like it is a dublicate for this question, maybe will help

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