:::
XOOPS使用討論區

安裝tadnews模組出現問題

discuss pic 2011-03-28 05:15:28
我的環境:IIS7.5+PHP5.5+MYSQL5.1 目前news模組在修改mysql裡部份欄位預設值後,才能發布新聞。 請各位大大能協助解決 開偵錯訊息如下: 錯誤 通知: Undefined index: fop 在檔案中的第 /modules/tadnews/up_file.php 列 351 警告: 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/tadnews/function.php 列 53 警告: 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/tadnews/class/tadnews.php 列 20 警告: 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/tadnews/class/tadnews.php 列 21 未知: Function eregi() is deprecated 在檔案中的第 /modules/tadnews/class/tadnews.php 列 286 通知: Undefined variable: always_top_pic 在檔案中的第 /modules/tadnews/class/tadnews.php 列 343 通知: Undefined variable: files 在檔案中的第 /modules/tadnews/class/tadnews.php 列 343 通知: Constant _MD_TADNEW_NEWSPAPER already defined 在檔案中的第 /modules/tadnews/language/tchinese_utf8/modinfo.php 列 17 通知: Constant _MD_TADNEW_ARCHIVE already defined 在檔案中的第 /modules/tadnews/language/tchinese_utf8/modinfo.php 列 18 通知: Undefined index: kind 在檔案中的第 /modules/tadnews/index.php 列 389 通知: Undefined variable: admin_tools 在檔案中的第 /modules/tadtools/common/xoops.php 列 74 警告: constant(): Couldn't find constant _LOGGER_DEPRECATED 在檔案中的第 /class/logger/render.php 列 83 _LOGGER_DEPRECATED 問題 0.000213 - SET NAMES 'utf8' 0.000121 - SET SQL_BIG_SELECTS = 1 0.000973 - SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC 0.000266 - SELECT sess_data, sess_ip FROM session WHERE sess_id = '9d9njpeqipsv6frnortjrqaji6' 0.000344 - SELECT * FROM users WHERE uid = '1' 0.000300 - SELECT * FROM modules WHERE dirname = 'tadnews' 0.000554 - SELECT * FROM config WHERE (conf_modid = '7') ORDER BY conf_order ASC 0.000292 - SELECT * FROM modules WHERE dirname = 'protector' 0.000135 - DELETE FROM protector_access WHERE expire < UNIX_TIMESTAMP() 0.000177 - SELECT COUNT(*) FROM protector_access WHERE ip='163.20.86.85' AND request_uri='/class/modules/tadnews/' 0.000166 - SELECT COUNT(*) FROM protector_access WHERE ip='163.20.86.85' 0.000136 - INSERT INTO protector_access SET ip='163.20.86.85',request_uri='/class/modules/tadnews/',expire=UNIX_TIMESTAMP()+'60' 0.000189 - select ncsn,enable_post_group from tad_news_cate 0.000145 - update tad_news set always_top='0' WHERE always_top_date <='2011-03-28 04:35:32' and always_top_date!='0000-00-00 00:00:00' 0.000186 - select ncsn,nc_title,enable_group,enable_post_group,cate_pic from tad_news_cate where not_news!='1' order by sort 0.000238 - select * from tad_news where 1 and enable='1' and (ncsn in(1) or ncsn='0') and start_day < '2011-03-28 04:35:32' and (end_day > '2011-03-28 04:35:32' or end_day='0000-00-00 00:00:00') order by always_top desc , start_day desc 0.000217 - select * from tad_news where 1 and enable='1' and (ncsn in(1) or ncsn='0') and start_day < '2011-03-28 04:35:32' and (end_day > '2011-03-28 04:35:32' or end_day='0000-00-00 00:00:00') order by always_top desc , start_day desc LIMIT 0, 10 0.000367 - SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid = '3') ORDER BY conf_order ASC 0.001023 - SELECT DISTINCT gperm_itemid FROM group_permission WHERE gperm_name = 'block_read' AND gperm_modid = 1 AND gperm_groupid IN (1,2) 0.001739 - 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,7) AND b.bid IN (1,2,3,4,5,6,7,8,9,10,11,12,14,15,16,17,18,19,20,21,22,23,24,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41) ORDER BY b.weight, m.block_id 0.000315 - SELECT * FROM modules WHERE (hasmain = '1' AND isactive = '1' AND weight > '0') ORDER BY weight ASC, mid ASC 0.000448 - SELECT * FROM group_permission WHERE (gperm_name = 'module_read' AND gperm_modid = '1' AND (gperm_groupid = '1' OR gperm_groupid = '2')) 0.000166 - SELECT COUNT(*) FROM priv_msgs WHERE (read_msg = '0' AND to_userid = '1')
discuss pic 2011-03-28 05:17:50
tad
您的 php.ini 沒有去設定時區。
去設一下就好了。
discuss pic 2011-03-28 06:04:56
請問直接用記事本開啟PHP.INI修改為Asia/TaiPei後存檔
我這樣設定後
偵錯的訊息仍舊一樣
discuss pic 2011-03-28 06:05:56
tad
要重新啟動喔...
discuss pic 2011-03-28 06:26:21
我有重新啟動IIS
甚至還重開機
仍舊沒改善
順便請教
PHP.ini還需要有其他的設定嗎??
Tad老師說您也是架在IIS下
除了PHP和MYSQ外還需要安裝其他套件嗎??
discuss pic 2011-03-28 06:28:49
tad
我是在win下,但不是IIS下(IIS我也架過,是沒問題的)
我是建議用XAMPP,簡單快速又方便。
php.ini設定請參考這裡: http://www.tad0616.net/modules/tad_book3/page.php?tbdsn=230

若改完還是一樣,表示您改錯檔了。
discuss pic 2011-03-28 08:02:51
謝謝tad老師
已經可以使用了
只是tad_uploader無發安裝
錯誤訊息如下:
無法安裝 tad_uploader _AM_SYSTEM_MODULES_ERRORSC
正在安裝網路資料櫃

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 'TYPE=MyISAM' at line 13
請老師協助(經爬文好像部分語法不支援mySQL5.5)
discuss pic 2011-03-28 08:16:47
tad
等新版的吧~不然就自己手動修改一下sql即可
把TYPE=MyISAM刪除即可
:::

搜尋

QR Code 區塊

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

線上使用者

83人線上 (48人在瀏覽討論留言)

會員: 0

訪客: 83

更多…