2.61 后台显示设置修改后出错,怎么办。

2016-07-07 15:06 来源:www.chinab4c.com 作者:ecshop专家

就是显示设置里 推荐商品排序 设置为 随机显示后,首页出现一下错误信息。
Warning: Invalid argument supplied for foreach() in D:\WEB\includes\lib_goods.php on line 231

Warning: Invalid argument supplied for foreach() in D:\WEB\includes\lib_goods.php on line 231

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in D:\WEB\includes\lib_goods.php on line 251

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in D:\WEB\includes\lib_goods.php on line 251

Warning: array_unique() [function.array-unique]: The argument should be an array in D:\WEB\includes\lib_goods.php on line 252

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in D:\WEB\includes\lib_goods.php on line 251

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in D:\WEB\includes\lib_goods.php on line 251

Warning: array_unique() [function.array-unique]: The argument should be an array in D:\WEB\includes\lib_goods.php on line 252

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in D:\WEB\includes\lib_goods.php on line 251

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in D:\WEB\includes\lib_goods.php on line 251

Warning: array_unique() [function.array-unique]: The argument should be an array in D:\WEB\includes\lib_goods.php on line 252
无法使用这个功能,请问我要怎么解决?

回答:
根据错误判断,应该是在后台设置模板时候,对推荐商品、热门商品和最新上架,这几个商品的显示个数设置有误造成的,请把显示的数量设置为大于2。
如果还有问题的话,可以加我QQ,帮你再详细排查下具体原因。

谢谢,我试试。