我刚安装了joomla!1.6版本,平台是XAMPP
安装过程中,PHP的设定参数其他都是绿的,只有一项“错误显示”是红色,值为“开”
虽然说继续安装没有影响,但是在建站过程中,页面总是有如下的错误提示:
Warning: date() [function.date]: 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 E:\xampp\htdocs\joomla1.5\libraries\joomla\utilities\date.php on line 198怎么解决这个问题?是要修改这个date.php还是关闭错误显示呢?
求助!!
安装过程中,PHP的设定参数其他都是绿的,只有一项“错误显示”是红色,值为“开”
虽然说继续安装没有影响,但是在建站过程中,页面总是有如下的错误提示:
Warning: date() [function.date]: 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 E:\xampp\htdocs\joomla1.5\libraries\joomla\utilities\date.php on line 198怎么解决这个问题?是要修改这个date.php还是关闭错误显示呢?
求助!!
抱歉,我没找到这个php.ini文件=。= 可能是我比较菜,我用文件搜索也没搜到~求指教
是在joomla包里找吗?还是我找该文件的地方不对呢?
你好,我终于找到php.ini这个文件,也照你的方法修改了;但是现在又有一个新错误,如下:
Warning: DateTime::setTimezone() [datetime.settimezone]: Can only do this for zones with ID for now in E:\xampp\htdocs\joomla1.5\libraries\joomla\utilities\date.php on line 317我找到date.php文件的317行是:
316 if ($local == false) {
317 parent::setTimezone($this->_tz);
318 }求指教,谢谢!!
date_default_timezone_set ('Asia/Shanghai');
试试。你的php是哪个版本?
顺便看看
http://forum.joomla.org/viewtopic.php?p=2077396
http://forum.joomla.org/viewtopic.php?p=1810330
http://forum.joomla.org/viewtopic.php?f=428&t=426456
我查到这么一句话:PHP 5.3.1 (PEAR, Mail_Mime, MDB2, Zend)
是代表php版本是5.3.1吗?
不过我没找到init.php这个文件求指教~谢谢啊!