首页 > 代码库 > ecshop 在php5.5上安装错误解决

ecshop 在php5.5上安装错误解决

1.找到ecshop\includes\cls_image.php文件

搜索 function gd_version 改成 static function gd_version

2、Strict Standards: Only variables should be passed by reference in D:\wamp\ecshop\includes\cls_template.php on line 422

ecshop\includes\cls_template.php 

把 $tag_sel = array_shift(explode(‘ ‘, $tag));

改成:
$tag_arr = explode(‘ ‘, $tag); 
$tag_sel = array_shift($tag_arr);

并且删除 D:\wamp\www\ecshop\temp\caches下所有的文件

3、

Strict Standards: mktime(): You should be using the time() function instead in D:\wamp\www\ecshop\admin\sms_url.php on line 31
Strict Standards: mktime(): You should be using the time() function instead in D:\wamp\www\ecshop\admin\shop_config.php on line 32

解决办法

根据错误提示 把 mktime() 改成 time()