我的環境: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')