安装ecshop2.7出错

2016-07-07 15:33 来源:www.chinab4c.com 作者:ecshop专家

创建配置文件............成功
创建数据库............成功
安装数据............失败

Warning: date_default_timezone_get(): 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 'UTC' for '8.0/no DST' instead in E:\net\ecs\includes\cls_mysql.php on line 163 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 'UTC' for '8.0/no DST' instead in E:\net\ecs\includes\cls_mysql.php on line 165 Warning: date_default_timezone_get(): 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 'UTC' for '8.0/no DST' instead in E:\net\ecs\includes\cls_mysql.php on line 173 OK


回答:
请教高手解答啊。

http://bbs.ecshop.com/thread-95341-1-1.html
47

在install/includes/init.php文件里加入一句
date_default_timezone_set ('Asia/Shanghai');

试了试还是同样的错,不行。

那么你重新用2进制上传试下,然后安装。如果还是不行,pm过来你的安装信息,我们看下

我是在我自己机器上直接解压操作的,没有ftp,操作系统是windows xp。

请求管理员解决,多谢了!

date_default_timezone_get
提示的是时区的问题。
install/includes/init.php
和includes/init.php
两个文件都添加试下

好了,多谢晓天。

刚才应该在install/includes/init.php中增加,看错了。