您的位置:首页 > 运维架构

安装ecshop的一些常见错误的解决方案

2013-03-20 20:05 423 查看

example1(数据安装失败):

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:\wapm\www\ECShop\upload\install\includes\lib_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:\wapm\www\ECShop\upload\install\includes\lib_installer.php on line 223

我个错误应该是没有默认时区, 从警告中可以看出是因为时区的问题。我找到\upload\install\includes\lib_installer.php文件,加上date_default_timezone_set (’Asia/Shanghai’);这名后就安装成功了。马上就可以用ecshop了。

example2(EcShop 创建管理员帐号失败的解决办法):

(1)修改了install/includes/lib_installer.php的411或者412行,记住路径一定要正确

include(ROOT_PATH . 'install/languages/' . $system_lang . '.php');

替换成

include(ROOT_PATH . 'install/languages/zh_cn.php');

后就好了。

(2)修改php.ini。打开php5.ini查找date.timezone 去掉前面的分号修改成为:date.timezone =PRC


总结:相比discuz和wordpress,ecshop的安装要复杂一些,特此记录。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: