:::
XOOPS使用討論區

更新多人網頁模組1.66版後出現了問題

discuss pic 2016-01-13 10:36:02
使用者要先登入,才能看到網頁
如圖一
如果使用者沒有登入,就看不到網頁(空白)
如圖二
discuss pic 2016-01-13 10:57:29
tad
空白的話,建議開一下除錯,以便知道原因。
因為其他網站似乎沒這問題~
discuss pic 2016-01-13 12:01:51
開除錯後,如果沒有登入,還是出現網頁空白!若登入,則出現以下錯誤
通知: Constant _MD_TCW_MENU already defined 在檔案中的第 /modules/tad_web/plugins/system/langs/tchinese_utf8.php 列 20
通知: Constant _MD_TCW_LOGIN already defined 在檔案中的第 /modules/tad_web/plugins/system/langs/tchinese_utf8.php 列 21
通知: Constant _MD_TCW_MEM_UNAME already defined 在檔案中的第 /modules/tad_web/plugins/discuss/langs/tchinese_utf8.php 列 18
通知: Constant _MD_TCW_MEM_PASSWD already defined 在檔案中的第 /modules/tad_web/plugins/discuss/langs/tchinese_utf8.php 列 19
通知: Constant _MD_TCW_MENU already defined 在檔案中的第 /modules/tad_web/language/tchinese_utf8/main.php 列 155
通知: Constant _MD_TCW_BG_POSITION already defined 在檔案中的第 /modules/tad_web/language/tchinese_utf8/main.php 列 195
通知: Constant _MD_TCW_DISCUSS already defined 在檔案中的第 /modules/tad_web/language/tchinese_utf8/main.php 列 208
通知: Use of undefined constant _IS_EZCLASS - assumed '_IS_EZCLASS' 在檔案中的第 /modules/tad_web/header.php 列 11
警告: include_once(../function_block.php): failed to open stream: No such file or directory 在檔案中的第 /modules/tad_web/preloads/core.php 列 13
警告: include_once(): Failed opening '../function_block.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') 在檔案中的第 /modules/tad_web/preloads/core.php 列 13

針對最下面兩個警告訊息檢查,function_block.php是存在的,而權限為:-rwxr-xr-x 1 root root 1920 Jan  8 14:32 function_block.php

不知是否有誤?
discuss pic 2016-01-13 12:03:55
tad
看來是 php.ini 中的 display_error 沒設成 on
請根據站長工具箱後台的主機設定建議值設一設吧~
discuss pic 2016-01-13 13:50:01
除了第一項,其它都按建議值設定了!
也曾把第一項打開測試,也是出狀況!
discuss pic 2016-01-13 13:53:27
tad
OK~那就給我網址及帳密,我來看看是什麼情況囉~
discuss pic 2016-01-13 16:52:01
路過的訪客
我發現,可能是我的centos版本太舊了(5.11),我先升級看看…謝謝吳老師
discuss pic 2016-01-19 09:15:00
這是給「李勇銘」的悄悄話喔!
discuss pic 2016-01-19 10:28:27
tad
您的 apache 是不是有設定預設編碼為 Big5 呢?
default_charset=big5呢!要改成 utf-8喔~
discuss pic 2016-01-19 14:10:12
我是設定成utf-8沒錯
/etc/httpd/conf/httpd.conf

discuss pic 2016-01-19 14:11:47
tad
將該行註解掉吧。記得重啟apache
discuss pic 2016-01-19 14:14:00
阿!我豬頭,php.ini忘了設
discuss pic 2016-01-19 14:16:31
不過,現在沒有登入xoops時,還是無法看到班級網頁‧‧‧
discuss pic 2016-01-19 14:22:43
tad
是啊~而且開除錯也沒作用
所以我現在是束手無策...
除非有ssh帳號讓我進去直接用程式來測了...
discuss pic 2016-01-19 14:31:33
這是給「李勇銘」的悄悄話喔!
discuss pic 2016-01-19 15:52:31
tad
非常詭異...
未登入就無法載入樣板檔...
這什麼情形呢...
discuss pic 2016-01-19 16:09:23
真是給您添麻煩了!
discuss pic 2016-01-19 17:02:11
tad
好了,終於搞定...
原因出在 tad_login 快速登入
因為找不到相關函數,所以,變空白
啟動並更新tad_login,加上修改了部份程式碼(有函數才執行)
終於OK了。
discuss pic 2016-01-19 17:29:02
真是太感謝了!
:::

搜尋

QR Code 區塊

https%3A%2F%2Fmail.tad0616.cp22.secserverpros.com%2Fmodules%2Ftad_discuss%2Fdiscuss.php%3FBoardID%3D17%26DiscussID%3D32620%26g2p%3D1

線上使用者

212人線上 (184人在瀏覽討論留言)

會員: 0

訪客: 212

更多…