1 頁 (共 1 頁)

[問題]CPG1.4.8整合phpbb2.0.20所發生的錯誤

發表於 : 2006-06-12 19:02
chen82714ris
問題外掛:CPG1.4.8
參考連結:http://phpbb-tw.net/phpbb/viewtopic.php ... hlight=cpg
中design大大提供的下載頁面http://coppermine.sourceforge.net/
所下載的CPG新版本CPG1.4.8
使用版本:phpbb2.0.20
網站位置:http://sunfa.no-ip.org/phpbb/index.php
狀況描述:對不起,請問一下各位大大,我依照了上面的連結安裝了CPG1.4.8,但是在整合phpbb論壇的時候卻出現了下面的問題,請問要怎麼解決?
Fatal error: Cannot redeclare cpggetmicrotime() (previously declared in C:\AppServ\www\phpbb\gallery\include\init.inc.php:35) in C:\AppServ\www\phpbb\gallery\include\init.inc.php on line 37
補充:水怪 RPG 完整安裝版,付費遊覽1.0.9,付加檔案2.4.3,部分隱藏0.07,部分隱藏檔案0.02,勳章系統0.4.6,性別1.2.6em,生日1.5.9em,生肖1.0.1em,星座1.0.5em,全區域功告1.2.9em,在線狀況2.2.7,血型1.0,薪資系統1.1.0,版主控制區域1.1.1,好友列表1.1.1,表情符號分類1.4.0RC1c,主題分類2.0.1,黃卡系統1.4.12em,推薦網站1.2.2
問題檔案init.inc.php的37行的上下五行:

代碼: 選擇全部

$queries = array(); 

function cpgGetMicroTime() 
{ 
    list($usec, $sec) = explode(" ", microtime()); 
    return ((float)$usec + (float)$sec); 
} 
$cpg_time_start = cpgGetMicroTime(); 
// Do some cleanup in GET, POST and cookie data and un-register global vars 
$HTML_SUBST = array('&' => '&', '"' => '"', '<' => '<', '>' => '>', '%26' => '&', '%22' => '"', '%3C' => '<', '%3E' => '>','%27' => ''', "'" => '''); 
if (get_magic_quotes_gpc()) { 
    if (is_array($_POST)) {

請各位大大幫忙一下 :oops: ,感激萬分!! :cry: :cry: :cry:

發表於 : 2006-06-12 19:35
心靈捕手
我猜想:
您安裝 CPG 的 '路徑' 有誤!

CPG 它是一套可以獨立運作的 '相簿' 系統.

當您將 'cpg1.4.8.zip' 解壓縮後,
請將 /cpg148/*.* (資料夾) 整個上傳到 /www/ 底下即可,
也就是說, /cpg148/ 和 /phpbb/ 應該是在同一層目錄底下.

ps.
您可以自行更改 'cpg148' 的資料夾名稱.

建議您:
1. 清除 CPG 資料表 (或重建資料庫)
2. 更改 CPG 相關檔案放置的路徑
3. 安裝好 CPG 後, 再試試與 phpbb 的整合

Re: [問題]CPG1.4.8整合phpbb2.0.20所發生的錯誤

發表於 : 2007-01-10 19:55
dooob
chen82714ris 寫:問題外掛:CPG1.4.8
參考連結:http://phpbb-tw.net/phpbb/viewtopic.php ... hlight=cpg
中design大大提供的下載頁面http://coppermine.sourceforge.net/
所下載的CPG新版本CPG1.4.8
使用版本:phpbb2.0.20
網站位置:http://sunfa.no-ip.org/phpbb/index.php
狀況描述:對不起,請問一下各位大大,我依照了上面的連結安裝了CPG1.4.8,但是在整合phpbb論壇的時候卻出現了下面的問題,請問要怎麼解決?
Fatal error: Cannot redeclare cpggetmicrotime() (previously declared in C:\AppServ\www\phpbb\gallery\include\init.inc.php:35) in C:\AppServ\www\phpbb\gallery\include\init.inc.php on line 37
補充:水怪 RPG 完整安裝版,付費遊覽1.0.9,付加檔案2.4.3,部分隱藏0.07,部分隱藏檔案0.02,勳章系統0.4.6,性別1.2.6em,生日1.5.9em,生肖1.0.1em,星座1.0.5em,全區域功告1.2.9em,在線狀況2.2.7,血型1.0,薪資系統1.1.0,版主控制區域1.1.1,好友列表1.1.1,表情符號分類1.4.0RC1c,主題分類2.0.1,黃卡系統1.4.12em,推薦網站1.2.2
問題檔案init.inc.php的37行的上下五行:

代碼: 選擇全部

$queries = array(); 

function cpgGetMicroTime() 
{ 
    list($usec, $sec) = explode(" ", microtime()); 
    return ((float)$usec + (float)$sec); 
} 
$cpg_time_start = cpgGetMicroTime(); 
// Do some cleanup in GET, POST and cookie data and un-register global vars 
$HTML_SUBST = array('&' => '&', '"' => '"', '<' => '<', '>' => '>', '%26' => '&', '%22' => '"', '%3C' => '<', '%3E' => '>','%27' => ''', "'" => '''); 
if (get_magic_quotes_gpc()) { 
    if (is_array($_POST)) {

請各位大大幫忙一下 :oops: ,感激萬分!! :cry: :cry: :cry:


我的情現跟你一樣,請問你解決了嗎?如何解決的?可以教教我嗎?

發表於 : 2007-01-23 11:57
ghostx2
CPG 我安裝 1.4.10
它就變成了系統本身就有整合精靈
只要安裝
不用在修改其他檔案
不太清楚1.4.8是否改為整合精靈

發表於 : 2007-01-23 14:15
心靈捕手
ghostx2 寫:CPG 我安裝 1.4.10
它就變成了系統本身就有整合精靈
只要安裝
不用在修改其他檔案
不太清楚1.4.8是否改為整合精靈
http://phpbb-tw.net/phpbb/viewtopic.php?p=224113#224113
1.4.3 改用整合精靈了

用你 CPG 的管理者帳號登入
點選 管理功能
找到 整合管理
ps. 鎖定本主題.