[問題]安裝完phpBB2後,出現了錯誤訊息:幫幫偶

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

版主: 版主管理群

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

[問題]安裝完phpBB2後,出現了錯誤訊息:幫幫偶

文章 yellowfish »

我在安裝完phpBB2後,進人http://xxxxxx/phpBB2c/admin/index.php, 即出現了以下訊息:
Warning: file_exists() [function.file-exists]: Unable to access templates/subSilver/images/lang_chinese_traditional_taiwan_2.0.1 in /usr/home/yellowfish/phpBB2c/includes/functions.php on line 286

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/yellowfish/phpBB2c/includes/functions.php:286) in /usr/home/yellowfish/phpBB2c/admin/index.php on line 581

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/yellowfish/phpBB2c/includes/functions.php:286) in /usr/home/yellowfish/phpBB2c/admin/index.php on line 582
不知如何解決?
不知如何解決?
不知如何解決?
頭像
tspd654
星球普通子民
星球普通子民
文章: 18
註冊時間: 2003-02-03 10:15
來自: 台灣

Re: [問題]安裝完phpBB2後,出現了錯誤訊息:幫幫偶

文章 tspd654 »

yellowfish 寫:我在安裝完phpBB2後,進人http://xxxxxx/phpBB2c/admin/index.php, 即出現了以下訊息:
Warning: file_exists() [function.file-exists]: Unable to access templates/subSilver/images/lang_chinese_traditional_taiwan_2.0.1 in /usr/home/yellowfish/phpBB2c/includes/functions.php on line 286

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/yellowfish/phpBB2c/includes/functions.php:286) in /usr/home/yellowfish/phpBB2c/admin/index.php on line 581

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/yellowfish/phpBB2c/includes/functions.php:286) in /usr/home/yellowfish/phpBB2c/admin/index.php on line 582
不知如何解決?
不知如何解決?
不知如何解決?
進人http://xxxxxx/phpBB2c/index.php看看
不在於你迷不迷人,而在於他迷不迷你 !
變電所不迷人,而大家卻時時迷著用電 !
air
星球普通子民
星球普通子民
文章: 30
註冊時間: 2002-03-08 18:14

文章 air »

會不會是你沒有讀寫檔案的權力?
因為 Warning: file_exists() .......
http://my-net.hk.st
圖檔

歡迎所有喜愛動漫的網友光臨^^


今期提供「圓盤皇女」的音樂下載.有興趣可以去我那下載
小竹子
竹貓星球大統領
竹貓星球大統領
文章: 4596
註冊時間: 2001-10-29 22:13
來自: 竹貓星球
聯繫:

文章 小竹子 »

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/yellowfish/phpBB2c/includes/functions.php:286) in /usr/home/yellowfish/phpBB2c/admin/index.php on line 581

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/yellowfish/phpBB2c/includes/functions.php:286) in /usr/home/yellowfish/phpBB2c/admin/index.php on line 582


這個是因為免費空間不給寫入的關係!在那些語法前面加入 // 就可以了
注意事項:
●phpBB 架設相關問題請到 + phpBB 3.0.x 討論區發表!
●都沒有你要的答案嗎??>>點這裡<<搜尋一下吧!
●請使用>>標準的發文格式<<發表問題!
●竹貓星球並非政治團體代言人,請不要在竹貓討論政治議題,也不要認為竹貓是偏向任何一方政治團體,竹貓愛的是台灣這片生長的土地,過於泛政治化文章請來信告知移除!
●關於 phpBB 使用問題請在版面發問,私人訊息提供其他不相干或是隱私的事情聯絡之用。
●所有市面上的免費空間皆非竹貓管轄,請勿來信詢問,請直接與該免費空間連絡。
咖啡豆子
星球普通子民
星球普通子民
文章: 19
註冊時間: 2002-11-13 07:54

文章 咖啡豆子 »

討論一下如有錯誤請指正.....
小弟上次也遇過file_exists() 這個函數的問題,後來我的解決方式是把這個函數拿掉。
就是比如說原本的敘述:
$img_lang = ( file_exists($current_template_path . '/images/lang_' . $board_config['default_lang']) ) ? $board_config['default_lang'] : 'english';
把它變成下面這樣:
$img_lang = ($current_template_path . '/images/lang_' . $board_config['default_lang']) ? $board_config['default_lang'] : 'english';
簡單來說就是把file_exits和()拿掉,不過要注意層次問題。
\n上次看了一下files_exits的解說好像是會去檢查檔案存不存在的樣子(如果說錯的話請各位指正)。所以我就把這個檢查拿掉而已.....
我的空間放在 http://www.polarhome.com這個免費空間。如果也有人一樣放在這裡的話,可以考慮一下小弟的做法。

附註:小弟不會寫程式,如果有錯誤的說法希望各位大大指導喔,謝謝..
william91
竹貓忠實會員
竹貓忠實會員
文章: 642
註冊時間: 2003-04-16 20:53
來自: 牛牛農場
聯繫:

文章 william91 »

你的意思是改哪一個檔?

還有...就是這網如何申請..我找不到..還有申請後如何上載?
間中上來走走吧~
咖啡豆子
星球普通子民
星球普通子民
文章: 19
註冊時間: 2002-11-13 07:54

[其它]抱歉忘記說明

文章 咖啡豆子 »

william91 寫:你的意思是改哪一個檔?

還有...就是這網如何申請..我找不到..還有申請後如何上載?
要改的檔案就是includes/functions.php。

進入 http://www.polarhome.com 的首頁後,
1.在左邊找Free下面的Account點選\r
2.看右邊頁面有個Choose your desired OS,下面有許多系統讓您選擇。看您是喜歡LINUX系的還是FREEBSD等等,選擇之後就會出現視窗讓您輸入使用者名稱和密碼了。

PS:
1.在輸入使用者名稱和密碼那邊他應該會告訴你FTP主機的名稱,要記好,因為根據您選擇的系統不一樣會有不同主機名稱。
大概就是這樣了。
2.使用一般FTP軟體就可以上傳了。

版主抱歉,因為不太會寫教學,所以佔用版面簡單教學一下,如果這發言不當煩請轉移或刪除。
william91
竹貓忠實會員
竹貓忠實會員
文章: 642
註冊時間: 2003-04-16 20:53
來自: 牛牛農場
聯繫:

文章 william91 »

他公司的FTP連不上><
間中上來走走吧~
yellowfish
星球普通子民
星球普通子民
文章: 6
註冊時間: 2003-04-30 08:44

文章 yellowfish »

多謝咖啡豆子的指點,如下法,已無原有的錯誤訊息,thanks u .

咖啡豆子 寫:討論一下如有錯誤請指正.....
小弟上次也遇過file_exists() 這個函數的問題,後來我的解決方式是把這個函數拿掉。
就是比如說原本的敘述:
$img_lang = ( file_exists($current_template_path . '/images/lang_' . $board_config['default_lang']) ) ? $board_config['default_lang'] : 'english';
把它變成下面這樣:
$img_lang = ($current_template_path . '/images/lang_' . $board_config['default_lang']) ? $board_config['default_lang'] : 'english';
簡單來說就是把file_exits和()拿掉,不過要注意層次問題。
上次看了一下files_exits的解說好像是會去檢查檔案存不存在的樣子(如果說錯的話請各位指正)。所以我就把這個檢查拿掉而已.....
..
charlie
星球普通子民
星球普通子民
文章: 3
註冊時間: 2002-08-24 15:21

文章 charlie »

小弟也有類似的問題.
用的是 2.0.6

當使用下列句子便出錯:

代碼: 選擇全部

file_exists(@phpbb_realpath($phpbb_root_path . $current_template_path . '/images/lang_' . $board_config['default_lang']))
但在下列句子中卻沒有問題:

代碼: 選擇全部

file_exists($phpbb_root_path . $current_template_path . '/images/lang_' . $board_config['default_lang'])
那位大大可告知原因?
ecap
星球普通子民
星球普通子民
文章: 2
註冊時間: 2003-11-28 22:57

文章 ecap »

我看到你的目錄是 lang_chinese_traditional_taiwan_2.0.1

試試看只把目錄名設定成 lang_chinese_traditional_taiwan
永遠的:)
主題已鎖定

回到「phpBB 2 安裝與使用」