新聞中心
ecshop安裝遇到安裝數(shù)據(jù)失敗的解決方法
ecshop無(wú)憂主機(jī)小編安裝的次數(shù)自己也數(shù)不清了,熟練程度不用說(shuō),安裝肯定是沒(méi)問(wèn)題的。但是今天給一個(gè)客戶安裝ecshop網(wǎng)站時(shí)遇到了這樣的一個(gè)問(wèn)題,直接報(bào)出了兩個(gè)警告: 1)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 (網(wǎng)站根目錄路徑)\upload\install\includes\lib_installer.php on line 223 2)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 (網(wǎng)站根目錄路徑)\upload\install\includes\lib_installer.php on line 223 對(duì)于程序員來(lái)說(shuō)應(yīng)該能看懂這段警告的問(wèn)題所在:這個(gè)錯(cuò)誤是沒(méi)有默認(rèn)時(shí)區(qū), 從警告中可以看出是因?yàn)闀r(shí)區(qū)的問(wèn)題。那么該如何去解決這個(gè)問(wèn)題呢?小編通過(guò)程序文件找到了問(wèn)題所在,下面小編給大家分享下解決的方案,希望能夠幫到有需要的站長(zhǎng)朋友們,解決方案很簡(jiǎn)單如下: 首先按照路徑找到這個(gè)程序文件:\upload\install\includes\lib_installer.php文件 然后在這個(gè)程序文件中加一行默認(rèn)時(shí)區(qū)的代碼: date_default_timezone_set (’Asia/Shanghai’); 然后上傳到對(duì)應(yīng)的目錄下,刷新下再去安裝ecshop就成功了。感謝大家對(duì)無(wú)憂主機(jī)的支持。 相關(guān)文章推薦閱讀: ECSHOP如何批量修改產(chǎn)品描述的解決方案 ECSHOP商業(yè)版權(quán)POWERED BY ECSHOP 修改大全 ECSHOP如何去除POWERED BY SHOPEX 模板版權(quán)信息
本文地址:http://www.gle-technology.com/ecshop/13633.html