ecshopV2.7.2 安装错误处理

在安装过程中出现如下错误:

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


Warning: date() [function.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' instead in /var/www/shop/includes/lib_install.php on line 223

解决办法:

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

如下所示

<?php

date_default_timezone_set ('Asia/Shanghai');

/* 报告所有错误 */

@ini_set('display_errors', 1);

error_reporting(E_ALL ^ E_NOTICE);

你可能感兴趣的:(时间戳,ecsshopV2.7.2,安装出错)