1 頁 (共 1 頁)

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

發表於 : 2003-04-30 08:50
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
不知如何解決?
不知如何解決?
不知如何解決?

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

發表於 : 2003-04-30 21:09
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看看

發表於 : 2003-04-30 21:11
air
會不會是你沒有讀寫檔案的權力?
因為 Warning: file_exists() .......

發表於 : 2003-04-30 23:20
小竹子
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


這個是因為免費空間不給寫入的關係!在那些語法前面加入 // 就可以了

發表於 : 2003-04-30 23:50
咖啡豆子
討論一下如有錯誤請指正.....
小弟上次也遇過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這個免費空間。如果也有人一樣放在這裡的話,可以考慮一下小弟的做法。

附註:小弟不會寫程式,如果有錯誤的說法希望各位大大指導喔,謝謝..

發表於 : 2003-05-01 00:16
william91
你的意思是改哪一個檔?

還有...就是這網如何申請..我找不到..還有申請後如何上載?

[其它]抱歉忘記說明

發表於 : 2003-05-01 00:34
咖啡豆子
william91 寫:你的意思是改哪一個檔?

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

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

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

版主抱歉,因為不太會寫教學,所以佔用版面簡單教學一下,如果這發言不當煩請轉移或刪除。

發表於 : 2003-05-01 00:48
william91
他公司的FTP連不上><

發表於 : 2003-05-02 10:21
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的解說好像是會去檢查檔案存不存在的樣子(如果說錯的話請各位指正)。所以我就把這個檢查拿掉而已.....
..

發表於 : 2003-11-28 12:16
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'])
那位大大可告知原因?

發表於 : 2003-11-28 23:36
ecap
我看到你的目錄是 lang_chinese_traditional_taiwan_2.0.1

試試看只把目錄名設定成 lang_chinese_traditional_taiwan