[問題] common.php升級時問題(Fixed)

phpBB Installation & Usage Support
phpBB 2 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
主題已鎖定
Cycler An
星球普通子民
星球普通子民
文章: 8
註冊時間: 2005-10-28 21:55

[問題] common.php升級時問題(Fixed)

文章 Cycler An »

版本: 升2.0.18中\r
升級經過: 正在新增common.php代碼部分
錯誤訊息:

代碼: 選擇全部

Fatal error: Call to a member function on a non-object in /home/iray/public_html/cycling/common.php on line 215
common.php (215行左右):

代碼: 選擇全部

include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/template.'.$phpEx);
include($phpbb_root_path . 'includes/sessions.'.$phpEx);
include($phpbb_root_path . 'includes/auth.'.$phpEx);
include($phpbb_root_path . 'includes/functions.'.$phpEx);
// We do not need this any longer, unset for safety purposes
unset($dbpasswd);


//
// Obtain and encode users IP
//
// I'm removing HTTP_X_FORWARDED_FOR ... this may well cause other problems such as
// private range IP's appearing instead of the guilty routable IP, tough, don't
// even bother complaining ... go scream and shout at the idiots out there who feel
// "clever" is doing harm rather than good ... karma is a great thing ... :)
//
$client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : getenv('REMOTE_ADDR') );
$user_ip = encode_ip($client_ip);
-謝謝!
最後由 Cycler An 於 2005-10-31 22:24 編輯,總共編輯了 1 次。
flower
星球公民
星球公民
文章: 272
註冊時間: 2004-08-31 21:03
來自: 火星
聯繫:

文章 flower »

代碼: 選擇全部

include($phpbb_root_path . 'includes/auth.'.$phpEx);
include($phpbb_root_path . 'includes/functions.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);
// We do not need this any longer, unset for safety purposes
unset($dbpasswd);
include($phpbb_root_path . 'includes/db.'.$phpEx);
這句不見了?
右手
星球公民
星球公民
文章: 78
註冊時間: 2004-05-10 21:21

文章 右手 »

代碼: 選擇全部

// We do not need this any longer, unset for safety purposes
unset($dbpasswd);
上面應該有這一行

代碼: 選擇全部

include($phpbb_root_path . 'includes/db.'.$phpEx);
你把那行幹掉了?
●架設主機作業系統:Windows 2000 Pro
●我的上網方式:ADSL HINET2MB/512K浮動IP
●我安裝的程式:Apache HTTP Server 2.0.55 +PHP 4.4/5.0.5 + MySql4.0.26
●我的 phpBB2 版本:phpBB 2.0.17
●我的 phpBB2 連結網址
Cycler An
星球普通子民
星球普通子民
文章: 8
註冊時間: 2005-10-28 21:55

文章 Cycler An »

謝謝兩位大大! :lol:
主題已鎖定

回到「phpBB 2 安裝與使用」