論壇問題疑難解決:
第1步,看以下"新手常見問題總匯"(可用Ctrl+F,找出所須關鍵字)
第2步,搜索
第3步,發帖求助(若是某頁面有問題,請先註明有沒有改過該頁的文件)
新手常見問題總匯
1) 出現以下錯誤訊息
Parse error: parse error in c:\appserv\www\sky-forum\index.php on line 21
點搵行數同點解決?
你可以用記事本開啟此php檔,按Ctrl+G,輸入行動
解決:通常係漏符號,如 " , ' ; ] [ { } 等
2) 出現以下錯誤訊息,點解決?
Table 'database3.cdb_member' doesn't exist
去check下有冇打錯table名,以呢個為例,應該係cdb_members
3) 出現以下錯誤訊息,點解決?
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 ''' at line 1
通常係漏" ' 的符號
4) 出現以下錯誤訊息,點解決?
Can not write to cache file, please check directory ./forumdata/ and ./forumdata/cache
把forumdata/同/forumdata/cache/更改屬性至777,還是不能的話,就將/forumdata/cache/內的所有files都改做777
更改屬性:對著file按右鍵,就有屬性
5) 出現以下錯誤訊息,點解決?
Warning: main(./include/common.php): failed to open stream: No such file or directory in c:\appserv\www\sky-forum\index.php on line 15
以呢個為例,看看在index.php的第15行有沒有打錯file名,若沒有的話,就看看是否遺忘了上載common.php
6) 出現以下錯誤訊息,點解決?
Fatal error: Call to undefined function: attachlist() in /home/students/domains/students-city.net/public_html/include/attachment.func.php on line 121
php本身沒有attachlist{xxxx}這個功能
看看是否忘了增加function attachlist{xxxxx},或打錯字~
7) 出現以下錯誤訊息,點解決?
資料庫不存在
或config.inc.php 中未設定資料庫名字
8) 出現以下錯誤訊息,點解決?
Duplicate column name 'xxx'
table內已有這欄(xxx),不用再執行這句語法
9) 出現以下錯誤訊息,點解決?
Column count doesn't match value count at row 1
table欄數同輸入欄數不同,如
INSERT INTO [Table]members (username, password) <----------2欄
VALUES ('1', '123123', '4297f44b13955235245b2497399d7a93') <---------3欄
你可以自己係php對下邊度多左~
10) 出現以下錯誤訊息,點解決?
Table '[Table]adminsessions' already exists
[Table]adminsessions已存在,不用再執CREATE TABLE cdb_nkflash_player (......) ...;的語法
11) 出現以下錯誤訊息,點解決?
Table 'xxx.[Table]' doesn't exist
檢查一下cache.func.php有沒想到改錯
注意有2個
不要搞亂
12) 甚麼是"執行"?如執行install.php
即係去果頁,如你壇的網址是
http://xxxxxx.com/
執行install.php只要去
http://xxxxxx.com/install.php便行了~
13) 如何安裝AppServ~??
http://www.alan888.com/Discuz/vi ... =page%3D3#pid889733
14) 點改屬性~??
右按文件檔,再按屬性~
15) 點去廣告~??
http://www.alan888.com/Discuz/thread-46048-1-1.html
16) 甚麼是根目錄~??
存放index.php的目錄
用網上空間架壇,根目錄可能在最上層的目錄(這是FTP根目錄),也有可能是/public_html/內(這是論壇根目錄)
根目錄是自己定的
如
http://xxxxxx.com/
那根目錄就是空間最上層
如
http://xxxxxx.com/aaa/
那根目錄就是aaa
如
http://xxxxxx.com/aaa/bbb/ccc/ddd/eee/fff/
那根目錄就是aaa/bbb/ccc/ddd/eee/fff/
17) 頁面空白,點算~??
先檢查該模版(即htm檔)內容是否空白
檢查actions.lang.php有沒有改錯
若沒有的話,就打開common.inc.php
改為
error_reporting(E_ERROR | E_WARNING | E_PARSE);
再重新整理頁面, 看看有沒有錯誤碼出現
還是空白的話,可能是廣告問題,請按照常見問題總匯第14項的指出去除廣告,或更換空間
也有可能是php改錯
18) 死圖點算~??
檢查路徑有沒有錯誤
方法:
在死圖右click----->內容
看網址
再根據網址檢查論壇目內圖片是否存在
如死圖網址是
[img]http://xxx.com/images/cool/star.gif[/img]
請在images/cool/內檢查有沒有star.gif,因為可能star.gif是放錯位置或根本沒有上載star.gif
之後將star.gif放回images/cool/內就可以了
19) 出現以下錯誤訊息,點解決?
Cache List: style_xx
Caches successfully created, please refresh.
http://www.alan888.com/Discuz/thread-51099-1-1.html
架Discuz!論壇方法(自架+網上空間)
http://www.alan888.com/Discuz/thread-115579-1-1.html
[
本帖最後由 1224 於 2008-5-30 15:26 編輯 ]