具有smarty_internal_templatebase的Prestashop [英] Prestashop with smarty_internal_templatebase
问题描述
PrestaShop 1.6.1.10
PHP 5.5.7
当我在PrestaShop中打开调试时,显示为这样的错误,我会修复它,但是我不知道如何解决它。
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.
通知:未定义索引:
中的br public_html / tools / smarty / sysplugins / smarty_internal_templatebase.php(157)
:eval()在第34行的代码注意:试图获取
中
非对象的属性public_html / tools / smarty / sysplugins / smarty_internal_templatebase.php(157)
:eval()在第34行的代码注意:未定义索引:hookPaymentShow in
public_html / tools / smarty / sysplugins / smarty_internal_templatebase.php(157)
:第44行的eval()代码注意:试图获取
中
非对象的属性public_html / tools / smarty / sysplugins / smarty_internal_templatebase.php(157)
:eval()在第44行上的代码注意:未定义索引:manifestPDFFooter
在
中public_html / tools / smarty / sysplu gins / smarty_internal_templatebase.php(157)
:第52行的eval()代码注意:试图获取
中非对象
的属性public_html / tools / smarty / sysplugins / smarty_internal_templatebase .php(157)
:eval()在第52行上的代码注意:未定义索引:
中的des public_html / tools / smarty / sysplugins / smarty_internal_templatebase.php(157)
:eval ()在第54行的代码注意:尝试获取
中非对象
的属性public_html / tools / smarty / sysplugins / smarty_internal_templatebase.php(157)
:eval()'第54行上的d代码
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
推荐答案
这意味着在tpl中某个地方有对hookPaymentShow的调用(例如)在未定义(不存在)的数组中。
It means somewhere in a tpl there is a call to hookPaymentShow (for example) in an array that is not defined (doesn't exist).
尝试查找引发通知的位置,您可以删除该条目或使用类似 {if isset($ array ['variable'])} $ array ['variable'] {/ if}
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}
这篇关于具有smarty_internal_templatebase的Prestashop的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!