在线建站培训
您的位置: 魔客吧 cms教程 ecshop教程 查看内容

PHP 5.3.3 下 ECSHOP 安装错误解决方法

2017-1-9 21:19 | 发布者: moke | 栏目:ecshop教程

php 5.3.3 下 ecshop 安装错误


在安装 ECSHOP 的时候,提示安装失败,提示信息如下:
Warning: date_default_timezone_get() [function.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

installincludeslib_installer.php
检查 PHP 手册,有注明:
Note:

Since PHP 5.1.0 (when the date/time functions were rewritten), every call to a date/time function will generate

a E_NOTICE if the timezone isn't valid, and/or a E_WARNING message if using the system settings or the TZ

environment variable.
造成 WARNING 原来是系统配置里没有设定默认时区,ECSHOP 调用 date_default_time_get (date/time 函数) 时则会产生错

误。在 php.ini 里设定一下:
date.timezone = Asia/Shanghai
或在代码里加入 date_default_timezone_set ('Asia/Shanghai'); 即可解决

查看更多 ecshop教程 ecshop模板

最新分享资源

最新评论