【问题标题】:CCAvenue Payment Module Giving Error in the Order Cart Page, Prestashop 1.6.1.7CCAvenue 支付模块在订单购物车页面出现错误,Prestashop 1.6.1.7
【发布时间】:2018-12-09 06:52:52
【问题描述】:

CC Avenue 模块在“订单购物车”页面上出现以下错误,尽管该模块本身正在工作并且没有任何问题,但我该如何消除此错误?

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

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

【问题讨论】:

    标签: php prestashop smarty payment prestashop-1.6


    【解决方案1】:

    这个错误意味着变量$ccavenue_error_message在模块的.tpl文件之一中,但在调用它的.php文件中没有定义。

    .tpl 文件中,在包含$ccavenue_error_message 的代码部分添加条件。 例如,如果您有:

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

    替换为:

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

    请随意添加您的 tpl 文件的代码,以便我可以准确地为您提供要修改的部分。

    您还应该要求模块的开发人员更正此错误。

    【讨论】:

      猜你喜欢
      • 2015-01-14
      • 1970-01-01
      • 2013-07-13
      • 2015-02-12
      • 1970-01-01
      • 2011-09-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多