久久青草精品A片狠狠,日韩欧美视频一区二区,亚洲国码AV日韩,国产精品黄在

幫助中心 >  技術(shù)知識(shí)庫(kù) >  網(wǎng)站相關(guān) >  建站知識(shí) >  ECSHOP程序安裝過(guò)程遇到數(shù)據(jù)庫(kù)失敗date_default_timezone_get()問(wèn)題

ECSHOP程序安裝過(guò)程遇到數(shù)據(jù)庫(kù)失敗date_default_timezone_get()問(wèn)題

2016-11-09 08:10:59 9467

發(fā)現(xiàn)各別國(guó)外空間再安裝ECSHOP時(shí)遇到的問(wèn)題,以全新向?qū)J桨惭b時(shí)遇到具體的PHP警告如下:

 

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 C:wwwrootincludeslib_installer.php on line 223

 

 

以上提示是說(shuō)明由于PHP默認(rèn)的時(shí)間區(qū)域設(shè)置問(wèn)題導(dǎo)致的警告,導(dǎo)致數(shù)據(jù)庫(kù)那段過(guò)不去而無(wú)法完成安裝,我門(mén)提供兩種解決辦法如下:

 

1. 修改includeslib_installer.php文件,在這個(gè)文件頂部<?php之內(nèi)加上如下PHP代碼:

 

date_default_timezone_set ('Asia/Shanghai');

 

這個(gè)是臨時(shí)的解決辦法,可以幫你成功安裝數(shù)據(jù)庫(kù),長(zhǎng)久之計(jì)還是要采用方法2。

 

 

2. 修改服務(wù)器的PHP配置文件。

 

打開(kāi)PHP.INI文件搜索到; date.timezone = 去掉前面的注釋;號(hào),然后改成date.timezone =Asia/Shanghai,保存配置文件,重啟你的服務(wù)器。


提交成功!非常感謝您的反饋,我們會(huì)繼續(xù)努力做到更好!

這條文檔是否有幫助解決問(wèn)題?

非常抱歉未能幫助到您。為了給您提供更好的服務(wù),我們很需要您進(jìn)一步的反饋信息:

在文檔使用中是否遇到以下問(wèn)題: