在本地新安装 ecshop 时出现如下的错误警告:
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for ...
ecshop 配送设置是较常用的一个功能了,夏日博客在最近的一次系统设置方式设置时出现了如下的 bug:
Warning: number_format() expects parameter 1 to be double, string given in ****//includes/lib_common.php on line 959
这实际上是配送插件与 ecshop 不兼容所导致的,我们仔细看来检查一下配送插件里面免费额度为 0,而 ecshop 本身的 bug 导致了 $price 的值为空,所以在直接调用 number_format 的...