1 頁 (共 2 頁)

[問題] 記錄管理者的動作

發表於 : 2006-02-25 02:09
bc010843
外掛連結

問題:
執行log_actions_db_update.php後出現

代碼: 選擇全部

Warning: message_die(./language/lang_english/lang_main.php): failed to open stream: No such file or directory in /home/fountain/public_html/phpbb/includes/functions.php on line 750

Warning: message_die(./language/lang_english/lang_main.php): failed to open stream: No such file or directory in /home/fountain/public_html/phpbb/includes/functions.php on line 750

Warning: message_die(): Failed opening './language/lang_english/lang_main.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fountain/public_html/phpbb/includes/functions.php on line 750
phpBB : 

Could not connect to the database 
在後台點選Logs Actions後出現

代碼: 選擇全部

Warning: message_die(./../language/lang_english/lang_main.php): failed to open stream: No such file or directory in /home/fountain/public_html/phpbb/includes/functions.php on line 750

Warning: message_die(./../language/lang_english/lang_main.php): failed to open stream: No such file or directory in /home/fountain/public_html/phpbb/includes/functions.php on line 750

Warning: message_die(): Failed opening './../language/lang_english/lang_main.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fountain/public_html/phpbb/includes/functions.php on line 750
phpBB : 重大錯誤 

Could not query log config informations

DEBUG MODE

SQL Error : 1146 Table 'fountain_phpbb.phpbb_logs_config' doesn't exist

SELECT config_value AS all_admin FROM phpbb_logs_config WHERE config_name = 'all_admin' 

Line : 69
File : admin_logs.php
點選Logs Config後出現

代碼: 選擇全部

Warning: message_die(./../language/lang_english/lang_main.php): failed to open stream: No such file or directory in /home/fountain/public_html/phpbb/includes/functions.php on line 750

Warning: message_die(./../language/lang_english/lang_main.php): failed to open stream: No such file or directory in /home/fountain/public_html/phpbb/includes/functions.php on line 750

Warning: message_die(): Failed opening './../language/lang_english/lang_main.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fountain/public_html/phpbb/includes/functions.php on line 750
phpBB : 重大錯誤 

Could not query log config informations

DEBUG MODE

SQL Error : 1146 Table 'fountain_phpbb.phpbb_logs_config' doesn't exist

SELECT config_value AS all_admin FROM phpbb_logs_config WHERE config_name = 'all_admin' 

Line : 51
File : admin_logs_config.php 
請問是哪出問題了?

PHPBB 2.0.19
OS LINUX
STYLE ICG
快速程式 無

謝謝

發表於 : 2006-02-25 03:23
jwxie
這個mod很久呢@@ 你有執行到SQL嗎?
因為其中的問題是

代碼: 選擇全部

 Table 'fountain_phpbb.phpbb_logs_config' doesn't exist 
請確定phpmyadmin裡有這一個TABLE嗎, 沒有新增的話就會不能執行Logs Actions
同樣子,

代碼: 選擇全部

Table 'fountain_phpbb.phpbb_logs_config' doesn't exist 
也是沒有耶@@先設定一下對不對吧
還有,

代碼: 選擇全部

Warning: message_die

建議你確定以下三件事:
1. MYSQL有那兩張的TABLE、檔案修改有沒有出錯、外掛包含檔案有沒有上傳
2. 建議你先參考官方
http://www.phpbb.com/phpBB/viewtopic.ph ... 00#1973900
還有, 記得把 install_tables.php刪了

代碼: 選擇全部

Information 
You have not yet delete the file install_tables.php : do it before trying to see this page.
3. 再加一個參考 table的
http://www.phpbb.com/phpBB/viewtopic.ph ... 47#1987847
有人提出舊的 table好像可以執行 db,試試看這個方法

4. 請用以下的方法, 貼出 include檔案(不要直接貼出)
http://www.phpbb-tw.net/phpbb/viewtopic ... 591#228591
目前看到你這類的, 我想法是: 你這個外掛裡面有包含(INCULDE)檔案, 那些 files你都有上傳到嗎?

請用上面的方法, 連貼 functions.php有問題的地方 (大約10行左吧)
另外, 每個連貼都說那行, 這樣會更容易明白^^謝謝

代碼: 選擇全部

Warning: message_die(./language/lang_english/lang_main.php): failed to open stream: No such file or directory in /home/fountain/public_html/phpbb/includes/functions.php on line 750 

發表於 : 2006-02-25 04:04
bc010843
總共上傳8個檔
## admin/admin_logs.php
## admin/admin_logs_config.php
## includes/functions_log.php
## includes/rules.php
## templates/subSilver/rules_body.tpl
## templates/subSilver/admin/logs_body.tpl
## templates/subSilver/admin/logs_config_body.tpl
log_actions_db_update.php

而且下載回來的外掛並沒有install_tables.php這個檔耶~

還是有類似的外掛可記錄版面管理員:移文~刪文~編輯...等等動作外掛呢?
謝謝

....

發表於 : 2006-02-25 05:47
jwxie
說實在2.0.19板本也有很多人提出問題喔....
好像這個板本並沒有update過.....

參考→ http://www.phpbb.com/phpBB/viewtopic.ph ... 92#1876792
不過作者 Meclin有寫道
Hmmm, not quite, if you run the update file before you have done the mod, you will get the tables with the wrong table names.
就是說執行 SQL先, mysql資料柵就會亂啦.,..

建議你:

1. 先回復主程式+資料庫(排除log action mod)
2. 回復以後, 請按以下的方法做:

打開Install_log_action_mod和log_actions_user_guide(在docs資料夾裡)
3. 作者已經表明, 你必需要按著 他寫的步驟慢慢來做,不可以執行MYSQL before你修改好檔案。

4. 修改好檔案→最底是You need to upload this file and then execute it throught your browser。(執行MYSQL)
5. 執行以, 請馬上把log_actions_db_update.php刪掉

6. 執行MYSQL後, 資料庫會出現兩張新的table :phpbb_logs, phpbb_logs_config.
這樣應該可以解決 table doesn't exist 的問題...不過↓↓

7. 跟著作者所說, 也就是上面我給你看的那個連結,
So if you have tables with names in upper case like "LOGS_TABLE", whilst the code is assuming table names like "phpbb_logs", you have a problem. Rename the tables in phpMyAdmin.
這一步我倒是沒什麼概念, 不過目前我想是指 進入phpmyadmin裡, 如果有table是以大寫英文→假如: LOGS_TABLE,而代碼(這個code我並不了解是指哪裡), 你就要修改跟代碼裡指向的TABLE一樣的名字囉。
以上作者最後的話我有所保留, 不太了解....請其他大大幫忙=.=

參考連結→作者之言→:
http://www.phpbb.com/phpBB/viewtopic.ph ... 92#1876792
目前我兩個回應中的參考資料, 作者之言你先看看, 再按我目前所了解的『比較正確』的方法去做。如果還不能, 那就必需要麻煩各位功力深厚的大大囉...
(因為竹貓轉成utf-8, 所以不能把所有參考東西貼出來翻好...只好全部都用連結^^)希望你成功....

Could not connect to the database 解決方法我倒是跟官方討論中一些人同意吧?
在更新mysql, 也就是upgrade_db.php那個檔案, 如果你在安裝phpBB的時候, 更動過資料庫表單字首: 預設是 phpbb_   但如果你後安裝卻動手改了, 不再是phpbb_這樣也可以會造成 couldn"t connect to the database, 還有 table安裝不了的問題。

PS:
關於你需要另一種新的 LOG ACTION
我倒是找到一個有更新, 又可以用在2.0.19的
[BETA] MOD Logbook
http://www.phpbb.com/phpBB/viewtopic.php?t=350367
目前雖然更新了2.0.19板通用, 但是目前還是"Beta"發展中.....
這個比起log action是簡單多, 是以color來讓admin清楚看到其他管理員的動作
color→classify→action
這就是原理.....^^
目前你使用的LOG ACTION, 作者好像很忙, 還在測試新的功能=="

發表於 : 2006-02-26 06:01
bc010843
這個外掛真的怪只要我執行執行log_actions_db_update.php就會出現

代碼: 選擇全部

Warning: message_die(./language/lang_english/lang_main.php): failed to open stream: No such file or directory in /home/fountain/public_html/phpbb/includes/functions.php on line 750

Warning: message_die(./language/lang_english/lang_main.php): failed to open stream: No such file or directory in /home/fountain/public_html/phpbb/includes/functions.php on line 750

Warning: message_die(): Failed opening './language/lang_english/lang_main.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fountain/public_html/phpbb/includes/functions.php on line 750
phpBB : 

Could not connect to the database 
另外jwxie提供的另一外掛有點繁鎖.....

....

發表於 : 2006-02-26 06:28
jwxie
我這也搞不清楚啦...
對啦, 我上面所說的方法也不能嗎?(第二次回覆)

如果那個很繁瑣, 但你實在很想裝這種外掛, 可能那個比較是更新好的....
目前好像都只那個有更新....

發表於 : 2006-02-26 06:39
bc010843
成功了,不過有些小問題

在後台選擇Logs Actions->選擇全部記錄->刪除。就出現

代碼: 選擇全部

Could not delete Logs

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' )' at line 3

DELETE FROM phpbb_logs WHERE id_log IN (, )

Line : 236
File : admin_logs.php
而選擇排列方式,選擇id後也顯示

代碼: 選擇全部

Warning: message_die(./../language/lang_english/lang_main.php): failed to open stream: No such file or directory in /home/fountain/public_html/phpbb/includes/functions.php on line 750

Warning: message_die(./../language/lang_english/lang_main.php): failed to open stream: No such file or directory in /home/fountain/public_html/phpbb/includes/functions.php on line 750

Warning: message_die(): Failed opening './../language/lang_english/lang_main.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fountain/public_html/phpbb/includes/functions.php on line 750
phpBB : 重大錯誤 

Could not query log informations

DEBUG MODE

SQL Error : 1054 Unknown column 'id_log' in 'order clause'

SELECT * FROM phpbb_logs ORDER BY id_log ASC LIMIT 0, 50 

Line : 164
File : admin_logs.php 
請問是哪出了問題?

謝謝

發表於 : 2006-03-01 04:59
jwxie

代碼: 選擇全部

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' )' at line 3
官方有討論, 不過官方主機搬家, 需要等到3月3號耶....
我暫時不能幫你解, 可能其他大大功力深, 幫到你.....
對不起囉....
暫時你沒什麼事情, 很想裝這個外掛, 看來只好放到3月4號吧....

發表於 : 2006-03-01 08:19
bc010843
謝謝哦~

這外掛好像不相容於 2.0.19 :cry:

....

發表於 : 2006-03-01 08:28
jwxie
不是不相容啦
只是他一直都沒更新
說起來作者說會去更新, 在忙很多東西
別怪他就算啦....

解決方法我不確定, (那是從官方討論中隱約看到)
暫時...你還是別動好啦
因為砍了外掛, 也許下次又裝不了....

發表於 : 2006-03-05 02:58
bc010843
不好意思再請問一下jwxie

您確定這個外掛有支援2.0.19嗎?這個mod好久....沒更新了耶 :-o

發表於 : 2006-03-05 12:34
jwxie
我並不是很sure可以支援
不過後來我給你的第二個類似的外掛, 的確是可以套入2.0.19

等官網好了, 我就會去看看回應
^^

發表於 : 2006-03-06 06:44
bc010843
jwxie 寫:我並不是很sure可以支援
不過後來我給你的第二個類似的外掛, 的確是可以套入2.0.19

等官網好了, 我就會去看看回應
^^
請教jwxie.....是否有得到決解之道?

謝謝

..

發表於 : 2006-03-06 08:08
jwxie
雖然官方重放,,但是這個mod困難重重
搜尋了半個小時多
發現你目前的問題,可能是因為 mysql的指定錯誤
作者也有說, 如果你有問題, 請先把新的mysql都 uninstall
然後自己手動, 進phpmyadmin, 新增msql

代碼: 選擇全部

         CREATE TABLE phpbb_logs ( 
        log_id mediumint(10) NOT NULL auto_increment, 
        mode VARCHAR(50) DEFAULT '', 
        topic_id mediumint(10) DEFAULT '0', 
        user_id mediumint(8) DEFAULT '0', 
        username VARCHAR(25) DEFAULT NULL, 
        user_ip VARCHAR(8) NOT NULL DEFAULT '0', 
        time int(11) DEFAULT '0', 
        post_title VARCHAR(60) NOT NULL DEFAULT '', 
        bbcode_uid VARCHAR(10) NOT NULL DEFAULT '', 
        post_text text, 
            PRIMARY KEY (log_id)); 

         CREATE TABLE phpbb_logs_config ( 
            config_name VARCHAR(255) NOT NULL, 
            config_value VARCHAR(255) NOT NULL, 
            PRIMARY KEY (config_name)); 

         INSERT INTO phpbb_logs_config ( 
            config_name, config_value) 
            VALUES ('all_admin', 0); 

         ALTER TABLE phpbb_users 
            ADD user_view_log TINYINT NOT NULL DEFAULT '0';
我原本想去裝, 但是網路一到晚上會慢,
我想你先試試手動新增msql,


我之前也有講過, 這個mod的作考非常的忙在忙著自己的事, 還有忙著去發展新的mod
因此這個目前看起來已經被放棄
可能將來幾個月原作考會發表更新檔,或者叫 logbook
他說他會發表一個叫 logbook,

如果你覺得很煩, 我還是建議你, 裝我之前提供給你的「Beta」
那個完全能用在 2.0.19


你先試試作考說的方法, 不然我自己也不知道怎麼好啦/.....
(跟你一樣問題的人, 一直都沒有人回答他......)

..

發表於 : 2006-03-13 00:11
jwxie
這位會員, 你已經成功還是放棄?@@
想知道.....