翻页报错can't parse to JSON
2016-07-07 15:01 来源:www.chinab4c.com 作者:ecshop专家
你使用是什么浏览器? 文件是否进行过修改 初步判断可能是编码问题 |
回答:
使用火狐,php文件修改过,js文件没有修改 |
在很多页面添加购物按钮后,点击时会出现例外被抛出,根据我的错误提示 uncaught exception: [Exception... "'transport.js/parseResult() error: can't parse to JSON. <br /> <b>Warning</b>: number_format() expects parameter 1 to be double, string given in <b>D:\wamp\www\ecshop\includes\lib_common.php</b> on line <b>965</b><br /> {"error":6,"message":[{"attr_type":"1","name":"\u989c\u8272","attr_id":"185","values":[{"label":"\u9ed1\u8272","price":"","format_price":"\uffe5\u5143","id":"196"},{"label":"\u91d1\u8272","price":"10","format_price":"\uffe510.00\u5143","id":"197"},{"label":"\u767d\u8272","price":"20","format_price":"\uffe520.00\u5143","id":"198"}]}],"content":"","goods_id":"19","parent":0}' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: chrome://firebug/content/spy.js :: callPageHandler :: line 744" data: no] 找到\includes\lib_common.php下的964行 $price = number_format($price,2, '.', ''); 改成 //$price = number_format((double)$price,2, '.', '');即可 希望对你有帮助 |
很好,谢谢! |
最近更新
常用插件
- ecshop商品分类名称增加样
ecshop插件介绍:本插件可以方便在后台管理,为ecshop商品分类名称增加样...
- ecshop二次商品订购人信息
ecshop二次商品订购人信息填写插件,有时候给朋友送花,或者是送礼品的...
- ecshop分类批量扩展插件
ecshop分类批量扩展插件,这个插件是ecshop插件里面比较核心的插件。我们...
- ecshop2.7.1打印发货单插件
ecshop2.7.1打印发货单插件介绍:ecshop2.7.1和以前的ecshop版本不一样,ecs...
- ecshop二次开发详细页面生
插件介绍: ECSHOP系统,在很多时候,很多商品没有人购买,不但购买的人...
ecshop热门问答
ecshop热门资料
ecshop网上银行
ecshop繁体
ecshop蚕丝被品牌
ecshopppmm
ecshop2.7
ecshop货位
ecshoptoken
ecshopUnix
ecshop收货人信息
ecshop和盛手机网
ecshop网站地址
ecshop51EC
ecshop邮件激活
ecshop天都
ecshop发布
ecshop来电
ecshop香港电器街
ecshop发信
ecshop底版
ecshop索引
ecshop唱片
ecshop简单
ecshop管理人员
ecshop数据库安装
ecshop评论等级
ecshop通栏
ecshop送货
ecshop模板函数
ecshop文章列表
ecshop工资