在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