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()错误

赞 (0) 打赏

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏