認證圖出了問題

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

版主: 版主管理群

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

認證圖出了問題

文章 artjio »

●主機作業系統:Windows XP Home
●快速架站程式:appserv
●免費空間連結:無
●您的上網方式:學術網路
●您安裝的程式:略
●您的 phpBB 版本:3.0.6

認證圖變成這樣
圖檔

上次更新時其實有些問題,後來因為時間緊迫,所以我就直接不合併就用新檔案了,

後來也更新成3.0.6,只是最近沒看到新文章覺得怪怪的,結果自己試了一下才發現這問題,

另外在後台點選CAPTCHA模組設定則會出現
Parse error: syntax error, unexpected T_IF, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in C:\AppServ\www\phpbb\forum\includes\db\db_tools.php on line 654

這個錯誤碼,所以想確定一下是我更新時出了問題,

那解決方法是以舊檔案覆蓋嗎? 還是要再更新一次?
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8547
註冊時間: 2004-04-30 01:54
來自: Taiwan

Re: 認證圖出了問題

文章 心靈捕手 »

artjio 寫:後來也更新成3.0.6,只是最近沒看到新文章覺得怪怪的,結果自己試了一下才發現這問題,

另外在後台點選CAPTCHA模組設定則會出現
Parse error: syntax error, unexpected T_IF, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in C:\AppServ\www\phpbb\forum\includes\db\db_tools.php on line 654

這個錯誤碼,所以想確定一下是我更新時出了問題,

那解決方法是以舊檔案覆蓋嗎? 還是要再更新一次?
建議您:
1. 用最新 3.0.6 版的底下檔案覆蓋舊檔。
  • includes/db/db_tools.php
2. 另外,必須檢視底下檔案的存檔格式,是否為 UTF-8(未含 BOM)
  • includes/functions.php
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
artjio
星球普通子民
星球普通子民
文章: 6
註冊時間: 2009-05-01 10:43

Re: 認證圖出了問題

文章 artjio »

圖檔

話說我用phpBB-3.0.5_to_3.0.6的new裡面的db_tools.php覆蓋後,

然後看到捕手打的第二點 ,我就開了fuction.php,因為我用的是notepad++,我就用轉換轉成utf8(檔首無bom)

後來就出現圖片的問題了,

他的line 4162~4166為

代碼: 選擇全部

header('Content-type: text/html; charset=UTF-8');

header('Cache-Control: private, no-cache="set-cookie"');
header('Expires: 0');
header('Pragma: no-cache');
可以的話,幫忙解惑一下,謝謝
artjio
星球普通子民
星球普通子民
文章: 6
註冊時間: 2009-05-01 10:43

Re: 認證圖出了問題

文章 artjio »

在管理模式下,我查到有這幾段訊息

代碼: 選擇全部

建立圖片時出錯
» 錯誤在 /includes/captcha/captcha_gd.php 的第 119 行:Cannot modify header information - headers already sent by (output started at /includes/functions.php:3464)

建立圖片時出錯
» 錯誤在 /includes/captcha/captcha_gd_wave.php 的第 250 行:Cannot modify header information - headers already sent by (output started at /includes/functions.php:3464)

建立圖片時出錯
» 錯誤在 /includes/captcha/captcha_gd_wave.php 的第 249 行:Cannot modify header information - headers already sent by (output started at /includes/functions.php:3464)

建立圖片時出錯
» 錯誤在 /includes/captcha/captcha_gd.php 的第 120 行:Cannot modify header information - headers already sent by (output started at /includes/functions.php:3464)

建立圖片時出錯
» 錯誤在 /includes/captcha/captcha_non_gd.php 的第 107 行:Cannot modify header information - headers already sent by (output started at /includes/functions.php:3464)


然後查了自己的captcha_gd.php 的第 119 ~120行

code為

代碼: 選擇全部

header('Content-Type: image/png');
header('Cache-control: no-cache, no-store'); 

自己的captcha_non_gd.php的107行

code為

代碼: 選擇全部

header('Cache-control: no-cache, no-store');
自己的captcha_gd_wave.php的249~250行

代碼: 選擇全部

header('Content-Type: image/png');
header('Cache-control: no-cache, no-store');
看到上面的程式碼,無法理解為何會出錯...
主題已鎖定

回到「[3.0.x] 安裝與使用」