首次安裝ecshop時出現第三步安裝數據失敗,絕大多數情況是因為沒有設置時區造成的。報警代碼如下:
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 (網站根目錄路徑)/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 (網站根目錄路徑)/upload/install/includes/lib_installer.php on line 223
安裝失敗圖示:
解決辦法:
找到/upload/install/includes/lib_installer.php文件,在程序頂部加上date_default_timezone_set ('asia/shanghai');然后就可以繼續安裝知道成功了。
以上就是ecshop安裝數據失敗的解決方法的全部內容,希望對大家的學習和解決疑問有所幫助,也希望大家多多支持武林網。
|
新聞熱點
疑難解答