1 頁 (共 1 頁)

認證圖出了問題

發表於 : 2010-01-27 21:22
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

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

那解決方法是以舊檔案覆蓋嗎? 還是要再更新一次?

Re: 認證圖出了問題

發表於 : 2010-01-27 23:17
心靈捕手
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

Re: 認證圖出了問題

發表於 : 2010-02-26 14:45
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');
可以的話,幫忙解惑一下,謝謝

Re: 認證圖出了問題

發表於 : 2010-02-26 15:05
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');
看到上面的程式碼,無法理解為何會出錯...