框架 1.7.3 版本
问题描述:
在 Order 页面中 Payment 这一步骤没有出现,同时在页面尾部也没有内容输出
处理过程描述:
在后台找开 Debug 模式
页面访问时出现异常
ContextErrorException in PaymentOption.php line 305:
Catchable Fatal Error: Argument 1 passed to PrestaShop\PrestaShop\Core\Payment\PaymentOption::convertLegacyOption() must be of the type array, string given
这主要是传递参数类型出现问题
查看具体代码
\src\Core\Payment\PaymentOption.php
public static function convertLegacyOption(array $legacyOption)
这个方法参数类型是数组,而传递过来的值为空字符串,这时就抛出异常
目前处理方法是:
将参数类型去除
public static function convertLegacyOption($legacyOption)