:::
XOOPS使用討論區

安裝tad相關模組附件檔案上傳出現問題

discuss pic 2011-03-31 01:12:57
tad老師又來麻煩您了 看了"提問的智慧"的文章後 有欲言又止的感受,深怕.......... 總之臉皮夠厚因此再次提問 tad模組有關檔案上傳部分,檔案都無法上傳至 uploads/???下 [color=660000]PHP.INI 裡的file_uploads = On,不知是否還要設定甚麼[/color] 1.tad_uploader檔案上傳時,資料寫入"MYSQL"OK(說明及超連結都正常),但檔案無法上傳至uploads/tad_uploader下 偵錯如下: 找不到檔案:http://163.20.86.85/kuoclass/uploads/tad_uploader/8_book3.txt 無 全部 錯誤 (2) (0) 問題 (12) 區塊 (0) 除外 (2) 計時(3) 錯誤 通知: Undefined variable: cat_sn 在檔案中的第 /modules/tad_uploader/function.php 列 497 通知: Undefined variable: cf 在檔案中的第 /modules/tad_uploader/function.php 列 497 警告: constant(): Couldn't find constant _LOGGER_DEPRECATED 在檔案中的第 /class/logger/render.php 列 83 _LOGGER_DEPRECATED 問題 0.000143 - SET NAMES 'utf8' 0.000077 - SET SQL_BIG_SELECTS = 1 0.000809 - SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC 0.000183 - SELECT sess_data, sess_ip FROM session WHERE sess_id = 'kuufu52faro7kk9v2r1vtqnf51' 0.000247 - SELECT * FROM users WHERE uid = '1' 0.000224 - SELECT * FROM modules WHERE dirname = 'tad_uploader' 0.000275 - SELECT * FROM config WHERE (conf_modid = '12') ORDER BY conf_order ASC 0.000202 - SELECT * FROM modules WHERE dirname = 'protector' 0.000228 - DELETE FROM protector_access WHERE expire < UNIX_TIMESTAMP() Error number: 1146 Error message: Table 'xoops.x85f_protector_access' doesn't exist 0.036032 - insert into tad_uploader_dl_log (`uid`,`dl_time`,`from_ip`,`cfsn`) values('1',now(),'163.20.86.85','8') 0.000285 - select * from tad_uploader_file where cfsn='8' 0.014324 - update tad_uploader_file set cf_count = cf_count+1 where cfsn='8' 2.tadbook3模組新增書籍(文章)時,資料部分都OK,若要上傳封面則無法成功。 偵錯如下: 錯誤 警告: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead 在檔案中的第 /modules/tad_book3/admin/index.php 列 154 警告: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead 在檔案中的第 /modules/tad_book3/admin/index.php 列 154 警告: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead 在檔案中的第 /modules/tad_book3/admin/index.php 列 154 警告: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead 在檔案中的第 /modules/tad_book3/admin/index.php 列 154 通知: Undefined variable: main 在檔案中的第 /modules/tad_book3/admin/index.php 列 232 通知: Constant _MI_TADBOOK3_ADMENU1 already defined 在檔案中的第 /modules/tad_book3/language/tchinese_utf8/modinfo.php 列 12 通知: Constant _MI_TADBOOK3_ADMENU2 already defined 在檔案中的第 /modules/tad_book3/language/tchinese_utf8/modinfo.php 列 13 通知: Constant _MI_TADBOOK3_ADMENU3 already defined 在檔案中的第 /modules/tad_book3/language/tchinese_utf8/modinfo.php 列 14 通知: Undefined index: show_submenu 在檔案中的第 /modules/tadnews/xoops_version.php 列 50 警告: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead 在檔案中的第 /class/smarty/plugins/modifier.date_format.php 列 53 警告: constant(): Couldn't find constant _LOGGER_DEPRECATED 在檔案中的第 /class/logger/render.php 列 83 _LOGGER_DEPRECATED 問題 0.000160 - SET NAMES 'utf8' 0.000090 - SET SQL_BIG_SELECTS = 1 0.000942 - SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC 0.000215 - SELECT sess_data, sess_ip FROM session WHERE sess_id = 'kuufu52faro7kk9v2r1vtqnf51' 0.000286 - SELECT * FROM users WHERE uid = '1' 0.000261 - SELECT * FROM modules WHERE dirname = 'protector' 0.000263 - DELETE FROM protector_access WHERE expire < UNIX_TIMESTAMP() Error number: 1146 Error message: Table 'xoops.x85f_protector_access' doesn't exist 0.000252 - SELECT * FROM modules WHERE dirname = 'tad_book3' 0.000278 - SELECT * FROM config WHERE (conf_modid = '9') ORDER BY conf_order ASC 0.000268 - select tbcsn,title from tad_book3_cate order by sort 0.000256 - select * from tad_book3 order by sort 0.000272 - select * from tad_book3 order by sort LIMIT 0, 20 0.000168 - select groupid,name from groups 0.000173 - select groupid,name from groups 0.000403 - SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid = '3') ORDER BY conf_order ASC 0.000255 - SELECT * FROM modules WHERE dirname = 'system' 0.000715 - SELECT * FROM config WHERE (conf_modid = '1') ORDER BY conf_order ASC 0.000337 - SELECT * FROM modules WHERE (hasadmin = '1' AND isactive = '1') ORDER BY weight ASC, mid ASC 0.000203 - SELECT * FROM modules WHERE dirname = 'news' 其他模組也有同樣的問題,我想原因應該是一樣的,所以就不寫出錯誤訊息
discuss pic 2011-03-31 01:19:31
tad
問沒關係啦!寫那篇只是讓大家明白,當您的問題沒有下文時,那到底是發生了什麼事。

下次可以貼出警告訊息就好,其餘的訊息不是很重要。
從警告訊息可以看出您的php.ini中沒有去設定時區
所以,時間函數會無法使用。

我不確定這是否和無法上傳有關,但您可以先處理這部份,若還是無法上傳,那再來看看原因為何。
discuss pic 2011-03-31 01:34:26
check
1)您upload目錄及其子目錄的權限
2)php.ini的檔案上傳大小限制
澎湖人NO1自由軟體交流網
http://b2d.phc.edu.tw
:::

搜尋

QR Code 區塊

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

線上使用者

38人線上 (22人在瀏覽討論留言)

會員: 0

訪客: 38

更多…