主題行事曆與水怪相衝問題, 請各位先進協助
主題行事曆的版本 1.0.1 資料來源
水怪 版本我忘記了, 不過應該滿標準的
我安裝了許多的mod
但在安裝主題行事曆之前一切正常
在安裝之後發生這樣的錯誤
我以為是主題行事曆的Function名稱與水怪一樣\rFatal error: Cannot redeclare getavatar() (previously declared in /home/site/utopia/rpg/function_rpg.php:9) in /home/site/utopia/rpg/function_rpg.php on line 9
所以跑去水怪的目錄下面把getavatar()改成getrpgavatar()
整個目錄下面的都有改\r
但是在去點一次水怪的連結之後
錯誤訊息變成
我把整個論壇的code搜尋一次\rFatal error: Cannot redeclare getrpgavatar() (previously declared in /home/site/utopia/rpg/function_rpg.php:9) in /home/site/utopia/rpg/function_rpg.php on line 9
並沒有getavatar()這個函數, 除了水怪在用之外
因此我繼續Trace code
發現關鍵在\r
page_header.php
這部份的修正
代碼: 選擇全部
#
#-----[ FIND ]------------------------------------------------
#
$template->pparse('overall_header');
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : calendar --------------------------------------------------------------------------------
//-- add
if (!defined('IN_CALENDAR'))
{
if ( intval($board_config['calendar_header_cells']) > 0 )
{
include_once($phpbb_root_path . './includes/functions_calendar.' . $phpEx);
display_calendar('CALENDAR_BOX', intval($board_config['calendar_header_cells']));
}
}
$template->assign_vars(array(
'L_CALENDAR' => $lang['Calendar'],
'I_CALENDAR' => $images['menu_calendar'],
'U_CALENDAR' => append_sid("./calendar.$phpEx"),
)
);
//-- fin mod : calendar ----------------------------------------------------------------------------
因此猜測是function_rpg.php被重複的include了
但是我不知道是那個程式去乎叫它也不知如何修正比較好\r
請各位先進指點一下
我在我未完成的論壇開了個帳號
如果各位有時間而且方便的話請協助看一下
小弟感激不盡\r
小店網址
測試用帳號: phpbb-tw
密碼: 123456
再次感謝
