Prestashop with smarty_internal_templatebase

2019-09-18 07:17发布

PrestaShop 1.6.1.10

PHP 5.5.7

When I turn on debugging in PrestaShop, appear as errors like this, I would fix it, but I do not understand how to fix it.

Notice: Undefined index: br in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 34 Notice: Trying to get property of non-object in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 34 Notice: Undefined index: hookPaymentShow in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 44 Notice: Trying to get property of non-object in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 44 Notice: Undefined index: manifestPDFFooter in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 52 Notice: Trying to get property of non-object in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 52 Notice: Undefined index: desc in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 54 Notice: Trying to get property of non-object in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 54

1条回答
做自己的国王
2楼-- · 2019-09-18 07:48

It means somewhere in a tpl there is a call to hookPaymentShow (for example) in an array that is not defined (doesn't exist).

Try to find the location where the notice is thrown, and you can delete the entry or use something like {if isset($array['variable'])}$array['variable']{/if}

查看更多
登录 后发表回答