Ecshop安装失败 遇到Warning: date_default_timezone_get()错误

Ecshop安装数据失败 提示Warning: date_default_timezone_get(): It is not safe to rely on the system’s timezone settings错误。

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 D:wapmwwwECShopuploadinstallincludeslib_installer.php on line 223
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 D:wapmwwwECShopuploadinstallincludeslib_installer.php on line 223

当遇到错误时别慌张、烦躁,因为此时你遇到的错误已经给你提示了,这样就相当于给了你解决问题的方法,最怕的就是展示结果不精确或者错误,但是又没有错误提示,这种情况才是最糟糕的。所以,当Ecshop安装失败提示错误Warning: date_default_timezone_get(): It is not safe to rely on the system’s timezone settings时,我们仔细阅读一下错误提示,就会有解决思路了。

Ecshop安装遇到安装数据失败的解决方法:

“It is not safe to rely on the system’s timezone settings”  :错误提示 系统时区设置导致的不安全

从警告中可以看出是因为时区的问题。我找到uploadinstallincludeslib_installer.php文件,加上date_default_timezone_set (’Asia/Shanghai’);这名后就安装成功了。马上就可以用ecshop了。

可以不经允许随意转载,分享:广州SEO,移动互联网营销 » Ecshop安装失败 遇到Warning: date_default_timezone_get()错误

分享的每套dede模板,整站带数据源码,wordpress模板,整站源码下载,帝国cms模板,带数据帝国cms网站,淘宝客源码,女性网站模板等源码的下载链接地址请咨询QQ索取。
赞 (0)
分享到: 更多