23 7月 2013

安装ecshop时报错“创建管理员帐号.失败”

错误显示详情:

创建配置文件…………成功
创建数据库…………成功
安装数据…………成功
创建管理员帐号…………失败

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 ‘Asia/Chongqing’ for ‘CST/8.0/no DST’ instead in /home/babap/ecshop/includes/lib_time.php on line 28 OK

解决方法

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