Mediawiki problems: Difference between revisions

Jump to navigation Jump to search
2,816 bytes added ,  19 January 2019
m
Text replacement - "http://errerrors.blogspot.com" to "https://errerrors.blogspot.com"
m (Text replacement - "http://errerrors.blogspot.com" to "https://errerrors.blogspot.com")
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<< [[MediaWikiInstallRecord]]
<< [[MediaWikiInstallRecord]]
問題解決協助
* 強迫網站更新某頁面的資料庫快取: 在頁面網址後加上 &action=purge (參考[http://zh.wikipedia.org/wiki/Wikipedia:%E7%B6%AD%E5%9F%BA%E7%99%BE%E7%A7%91%E5%B7%A5%E5%85%B7/%E5%BC%B7%E8%BF%AB%E6%9B%B4%E6%96%B0 Wikipedia])
* [http://wiki.planetoid.info/index.php/MediaWiki_toolbox#MediaWiki.E6.8A.80.E8.A1.93.E6.94.AF.E6.8F.B4 MediaWiki技術支援]




Line 69: Line 73:




=== 406 Not Acceptable ===
* Error message: When I tried to preview or save 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.
* Solution: reduce the complex of page content (ex: remove the long codes)
* case:
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 [https://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]
=== 頁面有超鏈連結(網頁、圖片…),點選後希望是另開視窗,而不是在當前視窗打開 ===
[[Open a link in mediawiki to a new window]]
=== Raw pages must be accessed through the primary script entry point (MediaWiki v1.12) ===
click the [https://errerrors.blogspot.com/2008/06/raw-pages-must-be-accessed-through.html Raw pages must be accessed through the primary script entry point (MediaWiki v1.12)]


== 待解決問題 ==
== 待解決問題 ==
Line 75: Line 125:
# 自訂Namespace
# 自訂Namespace
# 查封IP/User網址後的訊息畫面連到[http://wiki.planetoid.info/index.php/%E7%89%B9%E6%AE%8A:%E8%A2%AB%E5%B0%81%E7%B6%B2%E5%9D%80%E5%88%97%E8%A1%A8],但是正確的應該是[http://wiki.planetoid.info/index.php/%E7%89%B9%E6%AE%8A:Ipblocklist]。
# 查封IP/User網址後的訊息畫面連到[http://wiki.planetoid.info/index.php/%E7%89%B9%E6%AE%8A:%E8%A2%AB%E5%B0%81%E7%B6%B2%E5%9D%80%E5%88%97%E8%A1%A8],但是正確的應該是[http://wiki.planetoid.info/index.php/%E7%89%B9%E6%AE%8A:Ipblocklist]。
 
# 如何點選圖形時,直接進入特定網站連結,而非描述圖形(metadata)的頁面。 (效果: [http://zh-classical.wikipedia.org/wiki/Template:Sprotected2 Template:Sprotected2] 參考樣版:[http://zh-classical.wikipedia.org/w/index.php?title=Template:Sprotected2&action=edit Template:Sprotected2]與[http://zh-classical.wikipedia.org/w/index.php?title=Template:Click&action=edit Template:Click])。


== To-do ==
== To-do ==

Navigation menu