使用PHP開源CMS,Joomla問題

使用PHP開源CMS,Joomla問題。
配置好後,出現如下警告:
Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given

in D:/xampplite/htdocs/joomla/libraries/joomla/cache/handler/callback.php on line 100

解決:
在網站應用程序的文件夾下:
 /modules/mod_mainmenu/helper.php
做如下改動:
function buildXML(&$params)
變爲:
function buildXML($params)

 

--------------------------


在寫php程序中有時會出現這樣的警告:Warning: strtotime() [function.strtotime]: 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 identifie
這是因爲PHP所取的時間是格林威治標準時間,所以和你當地的時間會有出入格林威治標準時間和北京

時間大概差8個小時左右,我們可以按照下面的方法解決:

1、在頁頭使用date_default_timezone_set()設置我的默認時區爲北京時間,即
date_default_timezone_set("PRC");
?>就可以了。

2、在php.ini中設置date.timezone的值爲PRC,設置好以後的爲:date.timezone=PRC,同時取消這一

行代碼的註釋,即去掉前面的分號就可以了。

 

---------------------------------------------------------------

根本原因還是joomla的版本和php的版本不兼容

下了個這個Joomla_1.5.22-Chinese,完美兼容PHP 5.3.1

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章