1 頁 (共 1 頁)

phpBB3 Debug關閉了還是跑出Debug訊息?

發表於 : 2009-04-25 11:31
hollowaysxp
因為跟Gallery2橋接後,在看Gallery2都會友Debug訊息。
我在phpBB3後台看php資訊看到display_error是Off。

然後還是有錯誤訊息我就把phpBB3/config.php抓下來看。

代碼: 選擇全部

@define('DEBUG', true);
@define('DEBUG_EXTRA', true);

代碼: 選擇全部

@define('DEBUG', false);
@define('DEBUG_EXTRA', false);
兩種都試過了,也清除phpBB3的快取,phpBB3 Debug還是有出現。

代碼: 選擇全部

[phpBB Debug] PHP Notice: in file /home/xxxxxxxxxxxxxx
架設主機為免費虛擬主機。
還請大大幫我解答。

Re: phpBB3 Debug關閉了還是跑出Debug訊息?

發表於 : 2009-04-25 12:13
心靈捕手
hollowaysxp 寫:因為跟Gallery2橋接後,在看Gallery2都會友Debug訊息。
我在phpBB3後台看php資訊看到display_error是Off。

然後還是有錯誤訊息我就把phpBB3/config.php抓下來看。

代碼: 選擇全部

@define('DEBUG', true);
@define('DEBUG_EXTRA', true);

代碼: 選擇全部

@define('DEBUG', false);
@define('DEBUG_EXTRA', false);
兩種都試過了,也清除phpBB3的快取,phpBB3 Debug還是有出現。

代碼: 選擇全部

[phpBB Debug] PHP Notice: in file /home/xxxxxxxxxxxxxx
架設主機為免費虛擬主機。
還請大大幫我解答。
此錯誤訊息顯示: 您的 "橋接" 還有部分程式需要修正.

如果您要關閉 "phpBB3 Debug", 那麼在 config.php 將此兩行註解.
找到

代碼: 選擇全部

@define('DEBUG', true);
@define('DEBUG_EXTRA', true);
取代成

代碼: 選擇全部

//@define('DEBUG', true);
//@define('DEBUG_EXTRA', true);

Re: phpBB3 Debug關閉了還是跑出Debug訊息?

發表於 : 2009-04-25 13:50
hollowaysxp
相簿網址
http://nitcs.aqu.0lx.net/web/forum/gallery2.php

PHPDEBUG 訊息

代碼: 選擇全部

[phpBB Debug] PHP Notice: in file /home/vol3/aqu.0lx.net/0lx_3302277/htdocs/album/modules/core/classes/GalleryTranslator.class on line 302: putenv() has been disabled for security reasons
[phpBB Debug] PHP Notice: in file /home/vol3/aqu.0lx.net/0lx_3302277/htdocs/album/modules/core/classes/GalleryTranslator.class on line 303: putenv() has been disabled for security reasons
[phpBB Debug] PHP Notice: in file /home/vol3/aqu.0lx.net/0lx_3302277/htdocs/album/modules/core/classes/Gallery.class on line 600: set_time_limit() has been disabled for security reasons
config.php原本就是像心靈捕手大說的一樣,我想說把註解拿掉,修改true或false,不管怎麼樣都會出現。
前方寫者phpBB Debug我想說是phpBB的除錯功能。

好像是免費虛擬主機把某些PHP函數關閉的警告訊息。

橋接部分是OK了,已經確定在phpBB3註冊帳號後,可以登入Gallery2,也可在phpBB3內發文時使用G2IMAGE來選擇Gallery2內的照片。

現在只差錯PHP的DEBUG訊息。

Re: phpBB3 Debug關閉了還是跑出Debug訊息?

發表於 : 2009-04-26 22:43
心靈捕手
hollowaysxp 寫:相簿網址
http://nitcs.aqu.0lx.net/web/forum/gallery2.php

PHPDEBUG 訊息

代碼: 選擇全部

[phpBB Debug] PHP Notice: in file /home/vol3/aqu.0lx.net/0lx_3302277/htdocs/album/modules/core/classes/GalleryTranslator.class on line 302: putenv() has been disabled for security reasons
[phpBB Debug] PHP Notice: in file /home/vol3/aqu.0lx.net/0lx_3302277/htdocs/album/modules/core/classes/GalleryTranslator.class on line 303: putenv() has been disabled for security reasons
[phpBB Debug] PHP Notice: in file /home/vol3/aqu.0lx.net/0lx_3302277/htdocs/album/modules/core/classes/Gallery.class on line 600: set_time_limit() has been disabled for security reasons
config.php原本就是像心靈捕手大說的一樣,我想說把註解拿掉,修改true或false,不管怎麼樣都會出現。
前方寫者phpBB Debug我想說是phpBB的除錯功能。

好像是免費虛擬主機把某些PHP函數關閉的警告訊息。

橋接部分是OK了,已經確定在phpBB3註冊帳號後,可以登入Gallery2,也可在phpBB3內發文時使用G2IMAGE來選擇Gallery2內的照片。

現在只差錯PHP的DEBUG訊息。
上網搜尋發現, 該警告訊息還挺普遍的;
可能得調整伺服器主機的 php.ini, 或者是針對 Gallery2 的相關程式做修正.

建議您:
試試清除論壇快取;
或者, 請求免費空間支援.

Re: phpBB3 Debug關閉了還是跑出Debug訊息?

發表於 : 2013-07-25 17:51
bestlong
因為在程式中
對於 DEBUG 與 DEBUG_EXTRA 兩個常數都是檢查是否有定義

if (defined('DEBUG'))

if (defined('DEBUG_EXTRA'))

所以不管你修改為 true 或 false 甚至其他值
都會輸出錯誤訊息
因此唯有將 config.php 內的兩行都註解掉或刪除才行