新聞中心
ecshop安裝遇到安裝數(shù)據(jù)失敗的解決方法
ecshop無憂主機小編安裝的次數(shù)自己也數(shù)不清了,熟練程度不用說,安裝肯定是沒問題的。但是今天給一個客戶安裝ecshop網(wǎng)站時遇到了這樣的一個問題,直接報出了兩個警告: 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 對于程序員來說應(yīng)該能看懂這段警告的問題所在:這個錯誤是沒有默認(rèn)時區(qū), 從警告中可以看出是因為時區(qū)的問題。那么該如何去解決這個問題呢?小編通過程序文件找到了問題所在,下面小編給大家分享下解決的方案,希望能夠幫到有需要的站長朋友們,解決方案很簡單如下: 首先按照路徑找到這個程序文件:\upload\install\includes\lib_installer.php文件 然后在這個程序文件中加一行默認(rèn)時區(qū)的代碼: date_default_timezone_set (’Asia/Shanghai’); 然后上傳到對應(yīng)的目錄下,刷新下再去安裝ecshop就成功了。感謝大家對無憂主機的支持。 相關(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