Mediawiki problems: Difference between revisions
m (→待解決問題) |
(→已解決的問題) |
||
| Line 69: | Line 69: | ||
=== 406 Not Acceptable === | |||
When I tried to preview or write a wikipage, a error message: "406 Not Acceptable: An appropriate representation of the requested resource /index.php could not be found on this server." occurred. | |||
I checked the content of this webpage: | |||
<pre> | |||
... ... | |||
* Author: [URL Description] | |||
</pre> | |||
I insert a space after ''Author''. ''Author: [URL Description]'' became ''Author : [URL Description]'' The problem was solved. | |||
<pre> | |||
... ... | |||
* Author : [URL Description] | |||
</pre> | |||
Environment: MediaWiki: 1.5.4; PHP: 4.4.1 (apache); MySQL: 4.0.25-standard | |||
=== MySQL error: Table ... is marked as crashed and should be repaired (MediaWiki 1.6.10) === | |||
<pre> | |||
(SQL query hidden) | |||
來自於函數 "MediaWikiBagOStuff::_doquery"。 MySQL返回錯誤 "1194: Table 'objectcache' is marked as crashed and should be repaired (localhost)"。 | |||
</pre> | |||
Solution: | |||
Using the phpMyAdmin to do the following steps | |||
# (optional) TRUNCATE `objectcache` (清空objectcache資料表) | |||
# repair the objectcache table | |||
further reading | |||
* [http://dev.mysql.com/doc/refman/5.0/en/table-maintenance.html MySQL AB :: MySQL 5.0 Reference Manual :: 5.6.4 Table Maintenance and Crash Recovery] | |||
=== not safe to rely on the system's timezone settings. Please use the date.timezone setting (MediaWiki 1.11.0) === | |||
check [http://errerrors.blogspot.com/2008/01/not-safe-to-rely-on-systems-timezone.html Err: not safe to rely on the system's timezone settings. Please use the date.timezone setting] | |||
== 待解決問題 == | == 待解決問題 == | ||
Revision as of 23:03, 23 January 2008
已解決的問題
備份
預設版面的字太小
輔助說明連結失連
- 安裝後有些輔助說明連結,連到英文的Wikipedia,卻出現Error
- Wiki安裝後的導覽選單(導航條)的"幫助",會轉址到英文的Wikipedia的頁面,而發生錯誤,合適的中文說明連結是http://zh.wikipedia.org/wiki/Wikipedia:%E5%B8%AE%E5%8A%A9 或 http://zh.wikipedia.org/wiki/Help:%E5%B8%AE%E5%8A%A9 ,使用資料庫管理程式phpMyAdmin,然後到資料庫MediaWiki中的資料表interwiki[4]
欄位 iw_prefix = WikiPedia 欄位 iw_url = http://www.wikipedia.org/wiki/$1
- 修改為
欄位 iw_url = http://zh.wikipedia.org/wiki/Wikipedia:$1
附註:還是有些問題,例如頁面下方的「關於Wikipedia」,雖然可以正確轉到繁體,但是簡體的Wikipedia才有Wikipedia的說明文字,所以也許使用英文的使用者介面也不錯(UI)。 (相關說明: 如何修改MediaWiki的提示資訊 ex:下方頁尾 或 側邊的導航選單)
同一表格不同欄的間距太小
- {MediaWiki}/stylesheets/monobook/main.css 在table那一項目,加上 border-spacing: 15px;
- 或者加上表格的邊界
想移掉側邊欄的贊助網站連結
- 調整瀏覽選單(configure sidebar)
升級到mediawiki 1.5+,瀏覽選單多出Donations。以管理者權限修改MediaWiki:Sidebar
- navigation
- mainpage|mainpage
- portal-url|portal /**link to LemonWiki:Community_Portal
- currentevents-url|currentevents
- recentchanges-url|recentchanges /**link to Special:Recentchanges
- randompage-url|randompage /**link to Special:Random
- helppage|help
- sitesupport-url|sitesupport /**link to LemonWiki:Site_support
移除 sitesupport-url|sitesupport 那一行
禁止未註冊帳號者,不能編修頁面
方法詳見Setting user rights in MediaWiki
搜索時,輸入Dict Online找不到OnlineDict頁面
- 搜索時,輸入Dict Online找不到OnlineDict頁面,即MediaWiki會將OnlineDict看作一個字的頁面題目
- 替代方式:(1)設定Online_Dict自動轉頁,然後轉向到OnlineDict。或者(2)搜尋關鍵字輸入Online* 或dict* (3)使用搜尋引擎Site Search
美化網址
詳見Beautifying URLs of MediaWiki
註腳沒掛起來
- 安裝註腳擴充套件 (2007-07-09 solved)
在安裝設定時的SiteName(網站名稱) 無法使用中文
- 直接修改資料庫的方法,請看維基百科:幫助,或者
- 修改 LocalSettings.php 中的$wgSitename變數,然後將檔案儲存為UTF-8無BOM的格式
網頁標題想改成 SiteTitle: 頁面名稱
修改MediaWiki:pagetitle (瀏覽器上方的)網頁標題
可從預設值: $1 - {{SITENAME}}
改成 {{SITENAME}} : $1
- 相關頁面: 本地化設置
406 Not Acceptable
When I tried to preview or write a wikipage, a error message: "406 Not Acceptable: An appropriate representation of the requested resource /index.php could not be found on this server." occurred.
I checked the content of this webpage:
... ... * Author: [URL Description]
I insert a space after Author. Author: [URL Description] became Author : [URL Description] The problem was solved.
... ... * Author : [URL Description]
Environment: MediaWiki: 1.5.4; PHP: 4.4.1 (apache); MySQL: 4.0.25-standard
MySQL error: Table ... is marked as crashed and should be repaired (MediaWiki 1.6.10)
(SQL query hidden) 來自於函數 "MediaWikiBagOStuff::_doquery"。 MySQL返回錯誤 "1194: Table 'objectcache' is marked as crashed and should be repaired (localhost)"。
Solution: Using the phpMyAdmin to do the following steps
- (optional) TRUNCATE `objectcache` (清空objectcache資料表)
- repair the objectcache table
further reading
not safe to rely on the system's timezone settings. Please use the date.timezone setting (MediaWiki 1.11.0)
check Err: not safe to rely on the system's timezone settings. Please use the date.timezone setting
待解決問題
- table oddmuse's text formatting 與 MediaWiki 可以相容
- 英語介面的WikiFarm, see also Multilingualism
- 自訂Namespace
- 查封IP/User網址後的訊息畫面連到[5],但是正確的應該是[6]。
- 如何點選圖形時,直接進入特定網站連結,而非描述圖形(metadata)的頁面。 (效果: Template:Sprotected2 參考樣版:Template:Sprotected2與Template:Click)。
To-do
- 更改上載文件的文字說明
- OddmuseWiki 與 MediaWiki 的表格寫作語法不一致
- 給剛架設Wiki站關於授權方案選擇的建議
- Include RSS feeds into wiki page http://meta.wikimedia.org/wiki/Category:RSS_Extensions
是問題,但還不想解決
## aaa ## bbb
- aaa
- bbb
處理方式
# aa ## aaa ## bbb
- aa
- aaa
- bbb