OddmuseTrouble: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
No edit summary
m (Text replacement - "http://errerrors.blogspot.com" to "https://errerrors.blogspot.com")
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[OddmuseWikiInstallRecord|Oddmuse Wiki]] Troubles ([[OddmuseTroubleZH|中文版]])
[[Oddmuse wiki]] Troubles ([[OddmuseTroubleZH|中文版]])


==== Q: Node name in chinese is not work ====
==== Q: Node name in chinese is not work ====
Line 5: Line 5:


==== Q: Message:「Could not get visitors lock」or 「Could not get main lock: File exists」,and the script couldnot work ====
==== Q: Message:「Could not get visitors lock」or 「Could not get main lock: File exists」,and the script couldnot work ====
A: The official website said it's because script crash,I recommend to update your oddmuse script. (I met this problem in v. 1.287,and solve it after updated to v. 1.300)) other possibile solution is [http://www.emacswiki.org/cgi-bin/oddmuse-zh.pl/Unlock_Action unlock action], 2)place Data Dir to different directory,please check [http://www.emacswiki.org/cgi-bin/oddmuse-zh.pl/Known_Problems Known_Problems]
A: The official website said it's because script crash,I recommend to update your oddmuse script. (I met this problem in v. 1.287,and solve it after updated to v. 1.300)) other possibile solution is [http://www.emacswiki.org/cgi-bin/oddmuse-zh.pl/Unlock_Action unlock action], 2)place Data Dir to different directory,please check [http://www.emacswiki.org/cgi-bin/oddmuse-zh.pl/Known_Problems Known_Problems] or [http://oddwiki.taoriver.net/wiki.pl/Troubleshooting Trouble shooting]


===== Q:update to new version =====
I met this problem after updating to version 1.532, so I move my Data to another directory without space.
original (met 500 error when I try to save a wiki page)
$DataDir = 'C:/Program Files/Apache Group/Apache/htdocs/oddmuse';
new
$DataDir = 'c:/webpage/htdocs/oddmuse';


==== Q: [il10N] couldnot load chinese translation file ====
==== Q: [il10N] couldnot load chinese translation file ====
Line 20: Line 30:
: '''狀況''': http://www.webhospital.org.tw/essay/essay.html?pid=16&category=道聽不塗說
: '''狀況''': 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 道聽不塗說]
: '''解決方法''':將 ''...category=道聽不塗說'' 中文字[RFC 2396]編碼([[URL Encoding]])為 ''...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時,無法使用自己的查詢設定 ====
==== Q: 書籍查詢ISBN時,無法使用自己的查詢設定 ====
Line 110: Line 119:
:: correct - Google:眾聲喧嘩%20獨領風騷
:: correct - Google:眾聲喧嘩%20獨領風騷
: please encode " to %22 ; encode = to  %3d; encode half space character (半形空白) to %20; encode : to %3A; encode / to %2F ; the complete encode list please see [http://www.blooberry.com/indexdot/html/topics/urlencoding.htm URL Encoding]
: please encode " to %22 ; encode = to  %3d; encode half space character (半形空白) to %20; encode : to %3A; encode / to %2F ; the complete encode list please see [http://www.blooberry.com/indexdot/html/topics/urlencoding.htm URL Encoding]
==== Q: 中文頁面名稱.pg: No such file or directory ====
[https://errerrors.blogspot.com/2007/05/pg-no-such-file-or-directory-oddmuse.html 中文頁面名稱.pg: No such file or directory解決方式]
==== Q: Index of all pages (for all pages, permanent anchors) is 0 page ====
* del the file named pageidx (enforece Oddmuse regenerate its index file)


==== Q: Oddmuse migrate to another server ====
==== Q: Oddmuse migrate to another server ====
Line 116: Line 134:
:* modify config file,let $RefererTracking = 0 ,and del all refer files in "refer" directory   
:* modify config file,let $RefererTracking = 0 ,and del all refer files in "refer" directory   
:* upload two dir "keep" and "page"
:* upload two dir "keep" and "page"
:* del pageidx file (enforece Oddmuse generate its index file) partial cited from:oddmuse.org: [http://www.oddmuse.org/cgi-bin/oddmuse-zh/%e5%88%aa%e9%99%a4%e9%a0%81%e9%9d%a2 刪除頁面]
:* del pageidx file (enforece Oddmuse regenerate its index file) partial cited from:oddmuse.org: [http://www.oddmuse.org/cgi-bin/oddmuse-zh/%e5%88%aa%e9%99%a4%e9%a0%81%e9%9d%a2 刪除頁面]


==== Q:more questions to solve ====
==== Q:more questions to solve ====


A: check the [http://www.oddmuse.org/cgi-bin/oddmuse-zh/%e7%b6%b2%e7%ab%99%e5%9c%b0%e5%9c%96 offcial oddmuse wiki website].
A: check the [http://www.oddmuse.org/cgi-bin/oddmuse-zh/%e7%b6%b2%e7%ab%99%e5%9c%b0%e5%9c%96 offcial oddmuse wiki website] and its [http://oddwiki.taoriver.net/wiki.pl/Forum Forum].




[[Category:OddmuseWiki]]
[[Category:OddmuseWiki]] [[Category:Errors]]

Latest revision as of 13:42, 19 January 2019

Oddmuse wiki Troubles (中文版)

Q: Node name in chinese is not work[edit]

A: update to 1.362+, you may refer to ray's patch

Q: Message:「Could not get visitors lock」or 「Could not get main lock: File exists」,and the script couldnot work[edit]

A: The official website said it's because script crash,I recommend to update your oddmuse script. (I met this problem in v. 1.287,and solve it after updated to v. 1.300)) other possibile solution is unlock action, 2)place Data Dir to different directory,please check Known_Problems or Trouble shooting

Q:update to new version[edit]

I met this problem after updating to version 1.532, so I move my Data to another directory without space.

original (met 500 error when I try to save a wiki page)

$DataDir = 'C:/Program Files/Apache Group/Apache/htdocs/oddmuse';

new

$DataDir = 'c:/webpage/htdocs/oddmuse';

Q: [il10N] couldnot load chinese translation file[edit]

A: reason is unknown,solution is:copy all text in translation file into the beginning of (DataDir/config), that means other setup parameters should after the translation


Q: couldnot generate RSS,wiki.pl?action=rss I only saw blank page by RSS action,besides it was also failed when I include RSS of other website[edit]

A: lack of the module "XML::RSS". Plz check the req. of official website, Perl Modules

Q: http://www.webhospital.org.tw/essay/essay.html?pid=16&category=道聽不塗說 網址應該是到 ...category=道聽不塗說 才結束,但是連結卻只有到 ...category= 。網址連結不顯示包含中文字的部分[edit]

A:

狀況http://www.webhospital.org.tw/essay/essay.html?pid=16&category=道聽不塗說
解決方法:將 ...category=道聽不塗說 中文字[RFC 2396]編碼(URL Encoding)為 ...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 不過這樣滿醜的,建議改成[網址 網站說明文字]即道聽不塗說

Q: 書籍查詢ISBN時,無法使用自己的查詢設定[edit]

A:

狀況: 當我想為書籍的ISBN旁邊自動加上查詢連結 InterMap ,在頁面中寫上 ISBN:9574995054 (注意,英文字母及冒號需為半形大寫) 例如在 InterMap 中設定ISBN是 ISBN:986-7794-12-5 ,即以關鍵字 ISBN+986-7794-12-5 向 Google 查詢網頁,卻看到 ISBN 986-7794-12-5 (輪流, 搜尋)
原因:作者在原始碼中,熱心地提供三個可以查詢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=
由於國家圖書館ISBN全國新書資訊網的查詢網址語法不明(按: http://nbinet.ncl.edu.tw/search*chi/i 然後加上 ISBN,也就是下面的 %s 變數 ),所以我傾向自己加上網址,或者另起爐灶向博客來網站查詢,如: Books:986-7794-12-5 ,或者為了避免中文書籍出現累贅的連結,將 ISBN:... 半形冒號改成全形冒號 ISBN:...
解決方案二: 修改翻譯檔

將搜尋網址改成自己需要的

  1. ISBN 全國新書資訊網
  2. 博客來網路書店
  3. 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[edit]

A:

在頁面名稱(CamelWord)短的時候,例如從甲頁面要轉頁到[[SetFont]]乙頁面,在甲頁面標記了#REDIRECT SetFont可以順利導向,但是常常會在乙頁面名稱稍微長的時候,無法導向,請將乙頁面名稱SetFont,加上中刮號成為[[SetFont]],即甲頁面內容改為標記
#REDIRECT [[SetFont]]


Q: 最近更新(RecentChanges)裡的時區不對[edit]

A:

OddmuseWiki 程式使用的時間是「協調世界時間」(UTC, Coordinated Universal Time) 時區,相當於格林威治標準時間 (GMT, Greenwich Mean Time),而臺灣的時間是 GMT/UTC + 8 (CST),如果要將RecentChanges 的UTC時區更改為台北標準時間,必須更動到原始碼:
sub CalcTime {
  my ($sec, $min, $hour, $mday, $mon, $year) = gmtime(shift);
  return sprintf('%02d:%02d UTC', $hour, $min);
}

修改為

sub CalcTime {
  my ($sec, $min, $hour, $mday, $mon, $year) = gmtime(shift);
  return sprintf('%02d:%02d GMT+8', $hour+8, $min);
}
其他解決方法 Timezone Extension,不過作者計畫將此擴充功能日後改寫成模組。

Q: After setup InterMap (InterWiki) ,but still couldnot search multi keywords, ex: I wanna search「眾聲」and「喧嘩」 two words. I wrote Google:眾聲 喧嘩 on the oddmuse page,but not work。(Note: PreCondition is already setup Google to http://www.google.com.tw/search?ie=UTF-8&oe=UTF-8&q= on InterMap page)[edit]

A:

Condition 1、Search「眾聲喧嘩」, a phase
Wrong - Google:"眾聲喧嘩"
Correct - Google:眾聲喧嘩 or Google:%22眾聲喧嘩%22 that means encode " to %22
Condition 2、Search 「眾聲喧嘩」and「獨領風騷」 two words
wrong - Google:眾聲喧嘩 獨領風騷
wrong - Google:"眾聲喧嘩"+"獨領風騷"
correct - Google:%22眾聲喧嘩%22+%22獨領風騷%22
correct - Google:眾聲喧嘩%20獨領風騷
please encode " to %22 ; encode = to %3d; encode half space character (半形空白) to %20; encode : to %3A; encode / to %2F ; the complete encode list please see URL Encoding


Q: 中文頁面名稱.pg: No such file or directory[edit]

中文頁面名稱.pg: No such file or directory解決方式


Q: Index of all pages (for all pages, permanent anchors) is 0 page[edit]

  • del the file named pageidx (enforece Oddmuse regenerate its index file)


Q: Oddmuse migrate to another server[edit]

A:

  • modify config file,let $RefererTracking = 0 ,and del all refer files in "refer" directory
  • upload two dir "keep" and "page"
  • del pageidx file (enforece Oddmuse regenerate its index file) partial cited from:oddmuse.org: 刪除頁面

Q:more questions to solve[edit]

A: check the offcial oddmuse wiki website and its Forum.