【ecshop】解决错误提示

在wamp3.0.6版本安装了ecshop2.7.3之后,会有一系列的错误提示,如何解决这些错误提示呢?

1、Strict standards: Non-static method cls_image::gd_version() should not be called statically in D:\wamp64\www\code\ECShop\includes\lib_base.php on line 346

打开ECShop\includes\cls_image.php文件,大概在678行,找到gd_version()方法,在gd_version()方法前加上关键字static即可。

2、Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in D:\wamp64\www\code\ECShop\includes\cls_template.php on line 300

【错误原因】preg_replace() 函数中用到的修饰符 /e 在 PHP5.5.x 中已经被弃用了。


3、Warning: trim() expects parameter 1 to be string, array given in D:\wamp64\www\code\ECShop\includes\cls_template.php on line 374



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值