[外掛] Fix message_die for multiple errors

Officially Approved MODs
由 phpBB Group 官方發展小組認證的 MOD!

版主: 版主管理群

版面規則
請注意!只有發表在 [2.0.x] MOD Database Releases 的外掛,才算是官方認證的外掛。
主題已鎖定
~倉木麻衣~
竹貓忠實會員
竹貓忠實會員
文章: 1405
註冊時間: 2004-03-21 21:00

[外掛] Fix message_die for multiple errors

文章 ~倉木麻衣~ »

代碼: 選擇全部

##############################################################
## MOD Title: Fix message_die for multiple errors MOD
## MOD Author: markus_petrux < phpbb.mods@phpmix.com > (Markus) http://www.phpmix.com
## MOD Description: This MOD replaces the "message_die() was called multiple times" message
##     with something more useful. It reports a list of all "those" error messages with all
##     relevant information. So that may help board administrators to identify the problem.
## MOD Version: 1.0.4
##
## Installation Level: (Easy)
## Installation Time: 3 Minutes
## Files To Edit: 1
##    includes/functions.php
## Included Files: 0
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## - Technical comments:
##   Actually, the "message_die() was called multiple times" message is unlike to happen on a
##   fresh phpBB board, but it might happen related to MODs, depending on how they are coded.
##
##
## - MOD related comments:
##   Tested with phpBB versions from 2.0.10 to 2.0.17, at the time of writing.
##   This MOD is EasyMOD friendly.
##
##############################################################
## MOD History:
##
## 2005/09/06 - 1.0.4
## - Removed the define(HAS_DIED, 1) fix, preventing the MOD from being correctly
##   installed since phpBB 2.0.17, where the constant definiton was fixed.
## - MOD Header has been also adapted to new format.
##
## 2004/10/17 - 1.0.3
## - Added a mailto: link to the "Please, contact the webmaster" message.
##   This will be only available if the CONFIG table has been read, though.
##   Thanks again to Ptirhiik for the idea. :-)
##   Certainly it sounds wiser than using "smoke signals" to contact the webmaster.
##
## 2004/10/17 - 1.0.2
## - Added a "Please, contact the webmaster" message at the end of the report.
## - Fixed define(HAS_DIED, 1); typo. Thanks to Ptirhiik for letting me know this.
##
## 2004/10/17 - 1.0.0
## - Initial release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
安裝這個外掛並不能修復底下這個訊息\r

代碼: 選擇全部

message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?
相反的, 這個外掛是將所有引發message_die()的位置表列出來, 例如:

代碼: 選擇全部

Critical Error! 
message_die() was called multiple times. 

-------------------------------------------------------------------------------- 
Error #1 
Information 
網站目前正在維護當中,敬請見諒!! 


-------------------------------------------------------------------------------- 
Error #2 
Could not open template config file 

Line : 613 
File : /home/krcomtw/public_html/form/phpBB2/includes/functions.php 
註:錯誤訊息取自此篇
如此一來, 系統管理員就可以判斷那個地方出問題

外掛下載:Fix message_die for multiple errors
謝絕所有私人訊息詢問外掛相關問題
有問題請直接於版上發表, 集思廣議絕對比專挑特定人士詢問來的好

竹貓禁止發表含破解相關的軟體, 違者砍文
不要跟我講別的地方都可以發, 為什麼竹貓就不行
免費不等於破解, 傻傻的搞不清楚
主題已鎖定

回到「官方認證外掛」