:::
XOOPS使用討論區

使用tad_uploader_2.0RC3模組,上傳檔案後,到前台點擊下載該檔時,網頁呈現空白?

discuss pic 2011-09-28 06:20:36
使用tad_uploader_2.0RC3模組,成功上傳檔案後,到網站前台點擊下載該檔時,網頁呈現一片空白?

使用環境為
SERVER2003
服務XAMP
系統為XOOPS 2.5 UTF8
模組tad_uploader_2.0RC3 版
已安裝好tadtools_1.5

請TAD老師或其他版友,協助幫忙,謝謝您!

discuss pic 2011-09-28 09:16:14
tad
請開除錯~
discuss pic 2011-09-29 01:52:43
非常感謝TAD老師

果然在後台-->偏好設定-->系統設定-->一般設定,找到"開啟錯誤檢查模式"選擇"PHP錯誤檢查" tad_uploader前台,便可正常下載檔案了。

難怪老師網站抬頭寫著"空白請先開除錯"

因為網站已上線使用3個多月了,尚未遇到什麼大問題。
直到使用這tad_uploader_2.0RC3模組,成功上傳檔案後,到網站前台點擊下載該檔時,網頁呈現一片空白。

請問老師,我網站須一直開啟"PHP錯誤檢查"嗎?
謝謝您!


discuss pic 2011-09-29 01:54:37
tad
並不是,開除錯是為了看錯誤訊息(在左下方)
然後把訊息貼上來,才有辦法了解空白原因。
discuss pic 2011-09-29 04:57:30
謝謝TAD老師回覆

我開啟除錯後,檔案便可正常下載。
且左下方也沒有出現PHP語法訊息。

感覺一切正常,並無異狀!

但如果關閉除錯的話,到前台檔案下載模組,又是開啟新視窗,一片空白。

請問這樣的話,是只能一直開啟除錯嗎?

在此先謝謝TAD老師!
discuss pic 2011-09-30 07:49:17
我原本使用的neoshoolthemes佈景,"開啟PHP錯誤檢查"後,無法看到下方的錯誤碼。

先改成預設佈景後,便可看到下方的文字訊息,如下
-----------------------------------------------
通知: Undefined index: show_submenu 在檔案中的第 /modules/tadnews/xoops_version.php 列 50

通知: Undefined variable: autoplay 在檔案中的第 /modules/tad_player/blocks/tad_player.php 列 39

通知: Undefined index: download 在檔案中的第 /modules/tad_player/function_player.php 列 83

通知: Undefined index: backcolor 在檔案中的第 /modules/tad_player/function_player.php 列 95

通知: Undefined index: frontcolor 在檔案中的第 /modules/tad_player/function_player.php 列 96

通知: Undefined index: lightcolor 在檔案中的第 /modules/tad_player/function_player.php 列 97

通知: Undefined index: screencolor 在檔案中的第 /modules/tad_player/function_player.php 列 98

通知: Undefined variable: display 在檔案中的第 /modules/tad_player/function_player.php 列 105

通知: Undefined variable: bar 在檔案中的第 /modules/tad_uploader/index.php 列 308

通知: Undefined variable: cat_sn 在檔案中的第 /modules/tad_uploader/index.php 列 72

通知: Undefined variable: admin_tools 在檔案中的第 /modules/tadtools/common/xoops.php 列 74

通知: Undefined variable: xoops_module_header 在檔案中的第 /modules/tad_uploader/index.php 列 608

通知: Undefined variable: file 在檔案中的第 /modules/tad_uploader/index.php 列 609

通知: Undefined variable: file 在檔案中的第 /modules/tad_uploader/index.php 列 611

通知: Undefined variable: file 在檔案中的第 /modules/tad_uploader/index.php 列 612

警告: constant() [function.constant]: Couldn't find constant _LOGGER_DEPRECATED 在檔案中的第 /class/logger/render.php 列 83
-----------------------------------------------
雖然開啟除錯後,檔案便可正常下載,但又寫著"網站正式執行後請關閉此功能"
因此煩請各位版友指導幫忙,感激不盡!


discuss pic 2011-09-30 13:53:51
另外再列出該模組下方的錯誤文字,請各位版友協助查看原因,謝謝各位。 無 全部 錯誤 (20) (38) 問題 (54) 區塊 (3) 除外 (2) 計時(6) 列出問題(54)的文字部分,請查看如下 ------------------------------------------------------------ 0.000162 - SET NAMES 'utf8' 0.000087 - SET SQL_BIG_SELECTS = 1 0.000746 - SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC 0.000293 - SELECT sess_data, sess_ip FROM session WHERE sess_id = 'dktfu7mdv4n56ge3jcvcit3681' 0.000264 - SELECT * FROM modules WHERE dirname = 'tad_uploader' 0.000396 - SELECT COUNT(*) FROM group_permission WHERE (gperm_modid = '1' AND (gperm_groupid = '3') AND gperm_name = 'module_read' AND gperm_itemid = '37') 0.000293 - SELECT * FROM config WHERE (conf_modid = '37') ORDER BY conf_order ASC 0.000233 - SELECT * FROM modules WHERE dirname = 'protector' 0.000216 - DELETE FROM protector_access WHERE expire < UNIX_TIMESTAMP() 0.000227 - SELECT COUNT(*) FROM protector_access WHERE ip='124.218.66.169' AND request_uri='/modules/tad_uploader/index.php?of_cat_sn=1' 0.000157 - SELECT COUNT(*) FROM protector_access WHERE ip='124.218.66.169' 0.000158 - INSERT INTO protector_access SET ip='124.218.66.169',request_uri='/modules/tad_uploader/index.php?of_cat_sn=1',expire=UNIX_TIMESTAMP()+'60' 0.000598 - select gperm_itemid from group_permission where gperm_modid='37' and gperm_name='catalog_up' and gperm_groupid in (3) 0.000486 - SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid = '3') ORDER BY conf_order ASC 0.001059 - SELECT DISTINCT gperm_itemid FROM group_permission WHERE gperm_name = 'block_read' AND gperm_modid = 1 AND gperm_groupid IN (3) 0.009898 - SELECT b.* FROM newblocks b, block_module_link m WHERE m.block_id=b.bid AND b.isactive=1 AND b.visible=1 AND m.module_id IN (0,37) AND b.bid IN (1,2,3,4,5,6,7,8,9,10,11,12,67,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,73,74,97,84,53,51,52,56,65,66,72,71,70,69,68,76,75,78,77,80,83,82,85,86,87,88,89,90,91,92,93,94,96) ORDER BY b.weight, m.block_id 0.000624 - SELECT * FROM modules WHERE (hasmain = '1' AND isactive = '1' AND weight > '0') ORDER BY weight ASC, mid ASC 0.000808 - SELECT * FROM group_permission WHERE (gperm_name = 'module_read' AND gperm_modid = '1' AND gperm_groupid = '3') 0.000277 - SELECT * FROM modules WHERE dirname = 'tinyd0' 0.000380 - SELECT * FROM config WHERE (conf_modid = '25') ORDER BY conf_order ASC 0.000259 - SELECT storyid,title,link FROM tinycontent0 WHERE submenu='1' AND visible ORDER BY blockid 0.000273 - SELECT * FROM modules WHERE dirname = 'tinyd1' 0.000386 - SELECT * FROM config WHERE (conf_modid = '28') ORDER BY conf_order ASC 0.000650 - SELECT storyid,title,link FROM tinycontent1 WHERE submenu='1' AND visible ORDER BY blockid 0.000304 - SELECT * FROM modules WHERE dirname = 'tinyd2' 0.000362 - SELECT * FROM config WHERE (conf_modid = '29') ORDER BY conf_order ASC 0.000295 - SELECT storyid,title,link FROM tinycontent2 WHERE submenu='1' AND visible ORDER BY blockid 0.000269 - SELECT * FROM modules WHERE dirname = 'tinyd4' 0.000439 - SELECT * FROM config WHERE (conf_modid = '33') ORDER BY conf_order ASC 0.000152 - SELECT storyid,title,link FROM tinycontent4 WHERE submenu='1' AND visible ORDER BY blockid 0.000254 - SELECT * FROM modules WHERE dirname = 'tinyd5' 0.000356 - SELECT * FROM config WHERE (conf_modid = '34') ORDER BY conf_order ASC 0.000161 - SELECT storyid,title,link FROM tinycontent5 WHERE submenu='1' AND visible ORDER BY blockid 0.000265 - SELECT * FROM modules WHERE dirname = 'tinyd6' 0.000354 - SELECT * FROM config WHERE (conf_modid = '35') ORDER BY conf_order ASC 0.000238 - SELECT storyid,title,link FROM tinycontent6 WHERE submenu='1' AND visible ORDER BY blockid 0.000614 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (tpl_tplset = 'default' AND tpl_file = 'system_block_mainmenu.html') ORDER BY tpl_refid 0.000310 - SELECT * FROM modules WHERE dirname = 'tad_player' 0.000441 - SELECT * FROM config WHERE (conf_modid = '8') ORDER BY conf_order ASC 0.009614 - select * from tad_player order by rand() limit 0,1 0.000242 - select * from tad_player where psn='8' 0.000417 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (tpl_tplset = 'default' AND tpl_file = 'tad_player.html') ORDER BY tpl_refid 0.000403 - select cat_title,of_cat_sn from tad_uploader where cat_sn='1' 0.000249 - SELECT * FROM modules WHERE dirname = 'tadtools' 0.000240 - SELECT * FROM config WHERE (conf_modid = '5') ORDER BY conf_order ASC 0.000268 - update tad_uploader set cat_count = cat_count+1 where cat_sn='1' 0.000155 - select * from tad_uploader where cat_sn='1' 0.000320 - SELECT COUNT(*) FROM group_permission WHERE (gperm_modid = '37' AND (gperm_groupid = '3') AND gperm_name = 'catalog' AND gperm_itemid = '1') 0.000142 - select * from tad_uploader where cat_sn='1' 0.000307 - SELECT COUNT(*) FROM group_permission WHERE (gperm_modid = '37' AND (gperm_groupid = '3') AND gperm_name = 'catalog_up' AND gperm_itemid = '1') 0.000155 - select cat_sn,cat_title,cat_desc,cat_enable,uid,of_cat_sn,cat_share,cat_sort,cat_count from tad_uploader where of_cat_sn='1' and cat_enable='1' order by cat_sort 0.000358 - select cfsn,cat_sn,uid,cf_name,cf_desc,cf_type,cf_size,cf_count,up_date,file_url from tad_uploader_file where cat_sn='1' order by cf_sort 0.000195 - select * from tad_uploader where cat_sn='1' 0.000459 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (tpl_tplset = 'default' AND tpl_file = 'tu_main_tpl.html') ORDER BY tpl_refid 總計: 54 ------------------------------------------------------------
:::

搜尋

QR Code 區塊

https%3A%2F%2Ftad0616.net%2Fmodules%2Ftad_discuss%2Fdiscuss.php%3FBoardID%3D17%26DiscussID%3D2095

線上使用者

64人線上 (46人在瀏覽討論留言)

會員: 0

訪客: 64

更多…