分类分类
更新时间:2026-11-27 00:59:03作者:fang
ecshop错误: Warning: number_format() expects parameter 1 to be double, string given in includeslib_common.php on line 974
Ecshop购物车确认页面出现number_format()错误的解决办法
Warning: number_format() expects parameter 1 to be double,
一般在这种情况
1)PHP版本为5.3.0及以上版本
2)配送方式免费额度为0
下时,才会出现number_format()错误提示。
Warning: number_format() expects parameter 1 to be double, string given in includeslib_common.php on line 945
那么要如何来解决呢,下面最模板就说一下解决办法:
在includeslib_common.php中找到price_format()函数把:
else
{
$price = number_format($price, 2, '.', '');
}
修改为
else
{
$price = $price ? number_format($price, 2, '.', ''):0;
}
相关
轻听英语学习办公88.4 MBv2.7.212026-11-26
下载喵喵王国角色扮演1.15Gv00.40.012026-11-26
下载pokecatch游戏休闲益智410Kv1.02026-11-26
下载摇曳露营拼图露营休闲益智82.14 Mv1.7.52026-11-26
下载暗金秘录角色扮演316.84 Mv0.365.02026-11-26
下载AI剪辑图像拍照196.82 MBv21.52026-11-25
下载精灵联萌0.05折版策略游戏13.63 Mv1.0.02026-11-25
下载MilkSU内核管理器实用工具14.29 Mv0.2.62026-11-25
下载百炼仙途角色扮演528.9 Mv10002026-11-25
下载蛊界永生角色扮演407.01 Mv0.4.162026-11-25
下载幻梦无年动作射击276.68 Mv1.1.02026-11-25
下载假人慢打漂泊带土动作射击856.96 Mv0.9.02026-11-25
下载










