OddmuseTroubleZH: Difference between revisions
mNo edit summary |
|||
| (2 intermediate revisions by one other user not shown) | |||
| Line 2: | Line 2: | ||
==== Q: 廣告留言過多 ==== | |||
{{Software version | software=Oddmuse Wiki | url=http://www.oddmuse.org/ | version=1.806 }} | |||
* ''(optional)'' 安裝[http://www.oddmuse.org/cgi-bin/oddmuse/SpamCatching_Module Spam Catching extension] v 2.3 | |||
* 安裝[http://www.oddmuse.org/cgi-bin/oddmuse/QuestionAsker_Extension QuestionAsker Extension] v 1.16 | |||
* 如果系統維護指令([http://www.oddmuse.org/cgi-bin/wiki/Maintenance Maintenance action])無法運作,可手動刪除廣告留言的舊版本。ex: | |||
** 遭到廣告攻擊的頁面名稱為Comments_on_RecentVisitors | |||
** 舊版本文件位於 /public_html/cgi-bin/wikidata/keep/C/Comments_on_RecentVisitors/xxx.kp (xxx為數字) | |||
: 相關資料: [http://www.oddmuse.org/cgi-bin/oddmuse/Banning Oddmuse: Banning] or [[AntiSpam]] | |||
==== Q: (XAMPP) 系統找不到指定的路徑。 : couldn't spawn child process: wiki.pl ==== | |||
XAMPP的apache log訊息意思是指定的perl.exe路徑(通常是/usr/bin/perl)發生問題,建議額外安裝ActivePerl至C:\usr\ | |||
==== Q: 節點名稱(node)使用中文問題 ==== | |||
A: 安裝 1.362新版, 可參考ray所做的[http://140.124.182.91/~ray/cgi-bin/mywiki.pl/OddmuseFaq 修改patch](非新版) | |||
==== Q: 「Could not get visitors lock」或 「Could not get main lock: File exists」(無法取得 main 鎖定: File exists),而程式無法執行。 ==== | |||
A: 官方網站說明原因是 script crash,白話地說程式掛了,建議升級script解決 (我在1.287遇到這問題,升級到1.300就解決了。)其他''可能的''解決方法 1) [http://www.emacswiki.org/cgi-bin/oddmuse-zh.pl/Unlock_Action unlock action], 2)將 Data Dir 放在別處,請參考[http://www.emacswiki.org/cgi-bin/oddmuse-zh.pl/Known_Problems Known_Problems] 或 [http://oddwiki.taoriver.net/wiki.pl/Troubleshooting Trouble shooting] | |||
===== Q:程式升級後遭遇的狀況 ===== | |||
將Data目錄移至無空格相間的目錄。 | |||
原本遇到問題的路徑 | |||
$DataDir = 'C:/Program Files/Apache Group/Apache/htdocs/oddmuse'; | |||
更改為 | |||
$DataDir = 'c:/webpage/htdocs/oddmuse'; | |||
==== Q: [il10N] 掛不上中文翻譯檔 ==== | |||
A: 原因不明,解決方式:將翻譯檔的原始碼全數複製到設定檔 (DataDir/config) 內的開始處,意思是其他設定請放在翻譯文字的後面。 | |||
==== Q: 無法產生 RSS 檔案,wiki.pl?action=rss 的RSS動作,只會看到空白的頁面,另外內嵌他站的 rss 也會失敗。 ==== | |||
A: 缺乏 XML::RSS 模組。請參閱官方網站中安裝Oddmuse所需的 | |||
[http://www.oddmuse.org/cgi-bin/oddmuse-zh/Perl_%e6%a8%a1%e7%b5%84 Perl 模組] | |||
==== Q: http://www.webhospital.org.tw/essay/essay.html?pid=16&category=道聽不塗說 網址應該是到 ''...category=道聽不塗說'' 才結束,但是連結卻只有到 ''...category='' 。網址連結不顯示包含中文字的部分 ==== | |||
A: | |||
: '''狀況''': http://www.webhospital.org.tw/essay/essay.html?pid=16&category=道聽不塗說 | |||
: '''解決方法''':將 ''...category=道聽不塗說'' 中文字[RFC 2396]編碼(urlencode)為 ''...category=%B9D%C5%A5%A4%A3%B6%EE%BB%A1'' 如:http://www.webhospital.org.tw/essay/essay.html?pid=16&category=%B9D%C5%A5%A4%A3%B6%EE%BB%A1 不過這樣滿醜的,建議改成<nowiki>[網址 網站說明文字]</nowiki>即[http://www.webhospital.org.tw/essay/essay.html?pid=16&category=%B9D%C5%A5%A4%A3%B6%EE%BB%A1 道聽不塗說] | |||
==== Q: 書籍查詢ISBN時,無法使用自己的查詢設定 ==== | |||
A: | |||
: '''狀況''': 當我想為書籍的ISBN旁邊自動加上查詢連結 [[InterMap]] ,在頁面中寫上 ISBN:9574995054 (注意,英文字母及冒號需為半形大寫) 例如在 [[InterMap]] 中設定ISBN是 [http://www.google.com.tw/search?q=ISBN+9867794125 ISBN:986-7794-12-5] ,即以關鍵字 ISBN+986-7794-12-5 向 Google 查詢網頁,卻看到 [http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=9867794125 ISBN 986-7794-12-5] ([http://www.amazon.com/exec/obidos/ISBN=9867794125 輪流], [http://www.pricescan.com/books/BookDetail.asp?isbn=9867794125 搜尋]) | |||
: '''原因''':作者在原始碼中,熱心地提供三個可以查詢ISBN的網址(即使沒有設定[[InterMap]]),但是不幸的都是英文書籍,對於中文書籍該功能用處不大。 | |||
: '''解決方案一:''' 避免更改原始碼,直接在 [[InterMap]] 設定其中一種 | |||
ISBN http://www.google.com.tw/search?q= | |||
isbn http://www.google.com.tw/search?q= | |||
Books http://www.books.com.tw/exep/openfind_book_keyword.php?cat1=4&key1= | |||
: 由於國家圖書館[http://lib.ncl.edu.tw/search_isbn.htm ISBN全國新書資訊網]的查詢網址語法不明(按: http://nbinet.ncl.edu.tw/search*chi/i 然後加上 ISBN,也就是下面的 %s 變數 ),所以我傾向自己加上網址,或者另起爐灶向博客來網站查詢,如: Books:986-7794-12-5 ,或者為了避免中文書籍出現累贅的連結,將 ''ISBN:...'' 半形冒號改成全形冒號 ''ISBN:...'' 。 | |||
: '''解決方案二:''' 修改翻譯檔 | |||
將搜尋網址改成自己需要的 | |||
# [http://lib.ncl.edu.tw/isbn/index.htm ISBN 全國新書資訊網] | |||
# [http://www.books.com.tw 博客來網路書店] | |||
# [http://www.amazon.com/ amazon] | |||
原始翻譯檔 | |||
http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=%s | |||
(此行空白) | |||
http://www.amazon.com/exec/obidos/ISBN=%s | |||
(此行空白) | |||
alternate | |||
輪流 | |||
http://www.pricescan.com/books/BookDetail.asp?isbn=%s | |||
(此行空白) | |||
search | |||
搜尋 | |||
更改如下: | |||
http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=%s | |||
http://nbinet.ncl.edu.tw/search*chi/i%s | |||
http://www.amazon.com/exec/obidos/ISBN=%s | |||
http://www.books.com.tw/exep/openfind_book_keyword.php?cat1=4&key1=%s | |||
alternate | |||
替代 | |||
http://www.pricescan.com/books/BookDetail.asp?isbn=%s | |||
http://www.amazon.com/exec/obidos/ISBN=%s | |||
search | |||
搜尋 | |||
結果如下: | |||
: ISBN:9574995054 | |||
==== Q: 重導向 (REDIRECT) 失效:雖然在頁面標記了 #REDIRECT SetFont,可是不會自動重導向到 SetFont ==== | ==== Q: 重導向 (REDIRECT) 失效:雖然在頁面標記了 #REDIRECT SetFont,可是不會自動重導向到 SetFont ==== | ||