第 1 頁 (共 1 頁)
[問題]推薦網站的問題
發表於 : 2003-05-06 16:53
由 Jasmine
問題外掛:推薦網站
參考連結:
http://phpbb-tw.net/phpbb/viewtopic.php?t=5966
使用版本:phpBB2.0.3
網站位置:
http://members.lycos.co.uk/justintimber ... /index.php
狀況描述:
我照說明跟著做,然後上載所有檔案,但它出現了這句說話:
Parse error: parse error in index.php on line 32 (<- 這個是甚麼問題呢?)
我以重複了數次了還是一樣,為甚麼呢?
(由於它在第一頁出現錯誤,所以我把原有的檔案重新上載,亦即是網站現在沒有安裝推薦網站這外掛。) 謝謝各位。
補充:
曾裝過的外掛名稱:
adv_top5_mod_2.1
發表於 : 2003-05-06 17:04
由 Mac
index.php 第 22 行有讀取問題
請貼出 22 行的上下 5 行(並且標記第 22 行是哪一段)
~Mac
發表於 : 2003-05-06 17:38
由 Jasmine
我並不熟識怎樣數,22行應該是這一段當中,謝謝。
代碼: 選擇全部
//
// Handle marking posts
//
if( $mark_read == 'forums' )
{
if( $userdata['session_logged_in'] )
{
setcookie($board_config['cookie_name'] . '_f_all', time(), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
}
$template->assign_vars(array(
"META" => '<meta http-equiv="refresh" content="3;url=' .append_sid("index.$phpEx") . '">')
);
$message = $lang['Forums_marked_read'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a> ');
message_die(GENERAL_MESSAGE, $message);
}
//
// End handle marking posts
//
發表於 : 2003-05-06 18:03
由 shihchieh
這段似乎與推薦網站修改的index.php好像無關吧?
還是您算錯行數了?
發表於 : 2003-05-06 18:44
由 Jasmine
對不起,或者我將整個index.php登出來,謝謝。
代碼: 選擇全部
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . "includes/links_constants.$phpEx"); Links_MOD
?>
修改 by 河風:全貼出來只是浪費論壇資源。
發表於 : 2003-05-06 18:58
由 Mac
Sorry 說錯了,問題在 32 行
是這一陀:
代碼: 選擇全部
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX); <- 32 行
init_userprefs($userdata);
//
// End session management
//
問題可能是在這邊:
include($phpbb_root_path .
"includes/links_constants.$phpEx"); Links_MOD
請用
'
~Mac
發表於 : 2003-05-06 19:16
由 Jasmine
還是出現問題,那麼樣辦呢?謝謝。
發表於 : 2003-05-06 19:21
由 shihchieh
Jasmine 寫:還是出現問題,那麼樣辦呢?謝謝。
代碼: 選擇全部
include($phpbb_root_path . "includes/links_constants.$phpEx"); Links_MOD
Links_MOD 前面要加 "//"
代碼: 選擇全部
include($phpbb_root_path . "includes/links_constants.$phpEx"); // Links_MOD
如果可以正常執行的話,請把有問題的那段及前後三段留著其他請消除,謝謝。
發表於 : 2003-05-06 19:56
由 Jasmine
已經可以了,謝謝兩位的幫忙。
[問題]救命阿
發表於 : 2003-05-14 22:24
由 julia
我裝了這個外掛後,則是一直出現:
Warning: Cannot add header information - headers already sent by (output started at /home/jinhui/www/phpBB2/language/lang_chinese_traditional_taiwan/lang_main.php:1055) in /home/jinhui/www/phpBB2/includes/page_header.php on line 31
Warning: Cannot add header information - headers already sent by (output started at /home/jinhui/www/phpBB2/language/lang_chinese_traditional_taiwan/lang_main.php:1055) in /home/jinhui/www/phpBB2/includes/page_header.php on line 453
Warning: Cannot add header information - headers already sent by (output started at /home/jinhui/www/phpBB2/language/lang_chinese_traditional_taiwan/lang_main.php:1055) in /home/jinhui/www/phpBB2/includes/page_header.php on line 454
Warning: Cannot add header information - headers already sent by (output started at /home/jinhui/www/phpBB2/language/lang_chinese_traditional_taiwan/lang_main.php:1055) in /home/jinhui/www/phpBB2/includes/page_header.php on line 455
在首頁上
我已經重新再修改過一次所有該修改的地方,且檢查了好幾次,還是無法銷掉這一堆錯誤訊息....怎麼辦??請各位大大救救我吧!

發表於 : 2003-05-14 22:31
由 小竹子
免費空間問題,你肯定沒有搜尋就發問!=_=!!!
[問題]可是
發表於 : 2003-05-17 18:43
由 julia
可是我是用學校給的網頁空間並不是在一般的免費空間安裝phpbb的啊?!為什麼會出現安裝在免費空間中的錯誤呢??

發表於 : 2003-05-31 03:00
由 pat731
我按裝很在推薦網站匡匡裹看不見網站圖標

發表於 : 2003-05-31 03:07
由 pat731
問題外掛:(例:快速回覆)
參考連結:
http://phpbb-tw.net/phpbb/viewtopic.php?t=5966
使用版本:例:phpBB 2.0.3
網站位置:
http://collector1976.yeah.net
狀況描述:我按裝後在推薦網站匡匡裹看不見網站圖標

還沒加其他連結衹用回壓縮包裹的原件.
Re: [問題]可是
發表於 : 2003-05-31 03:14
由 小竹子
julia 寫:可是我是用學校給的網頁空間並不是在一般的免費空間安裝phpbb的啊?!為什麼會出現安裝在免費空間中的錯誤呢??

因為有些 PHP 的功能沒開放吧!