dtqpw68806
2018-06-30 06:57
浏览 38
已采纳

CCAvenue支付模块在订单购物车页面中给出错误,Prestashop 1.6.1.7

The CC Avenue module is giving the following error on the Order cart page, though the module as such is working and there is nothing wrong in it, but how do I remove this error?

Notice: Undefined index: ccavenue_error_message in /home/desigssq/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38

Notice: Trying to get property of non-object in /home/desigssq/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38 enter image description here

图片转代码服务由CSDN问答提供 功能建议

CC Avenue模块在订单购物车页面上发出以下错误,尽管这样的模块正在运行 它没有错,但如何删除此错误?

注意:未定义的索引:/home/desigssq/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)中的ccavenue_error_message ):第38行的eval()代码

注意:在/home/desigssq/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php中尝试获取非对象的属性( 157):第38行的eval()代码

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • duanhuang1967 2018-07-02 15:35
    已采纳

    This error means that the variable $ccavenue_error_message is in one of the .tpl files of the module, but is not defined in the .php file that calls it.

    In the .tpl file, add a condition to the part of the code containing $ccavenue_error_message. For example if you have:

    <div class="error">{$ccavenue_error_message.text}</div>
    

    replace it by:

    {if isset($ccavenue_error_message)}<div class="error">{$ccavenue_error_message.text}</div>{/if}
    

    Feel free to add the code of your tpl file so I can give you exactly the part to modify.

    You should also ask the developer of the module to correct this bug.

    已采纳该答案
    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题