ecshop因php版本过高导致报错的解决方法集合

2016-09-07 22:02 来源:www.chinab4c.com 作者:ecshop专家

1、admin/index.php
admin/sms_url.php
报错:Strict Standards: mktime(): You should be using the time() function instead in /data/web/ledetaoadmin/sms_url.php on line 31

1 $auth = mktime();

替换为:

1 $auth = time();

报错:Strict Standards: Only variables should be passed by reference in /data/web/includes/lib_main.php on line 1336
2、lib_main.php

1 $ext = end(explode('.', $tmp));

替换为:

1     $ext = end(); 
2 $ar = explode('.', $tmp);
3 $ext = end($ar);//zuimoban.com

继续报错
Warning: end() expects parameter 1 to be array, null given in /data/web/includes/lib_main.php on line 1336
将刚刚的代码改成:

1      $arr=

 



最近更新

常用插件