MediaWiki 主页错误
Main Page error of MediaWiki
我在主页上遇到了这个错误。如何解决?
http://www.hippomocks.com/Talk:Main_Page
The revision #0 of the page named "Main Page" does not exist.
This is usually caused by following an outdated history link to a page that has been deleted. Details can be found in the deletion log.
Database inconsistencies occur when, for example, primary keys stored in other fields no longer point to a row that exists. This can happen after a database import ends prematurely, for example. In that case, page.page_latest might point to a revision that hasn't been imported, and users trying to read the page might get an error message stating "The revision #0 of the page named '[page name]" does not exist. This is usually caused by following an outdated history link to a page that has been deleted. Details can be found in the deletion log."
维护脚本findAnomalies.php可用于查找缺失的修订。从您服务器上的 CLI,cd
到您的 Mediawiki 目录中的维护目录和 运行 脚本。例如:
cd /var/www/html/wiki/maintenance
php findAnomolies.php
并尝试一些额外的东西
您收到的错误消息听起来像页面 table 中的错误消息,相应页面的条目指向一个不存在的修订版。这可能可以通过 运行 维护脚本 attachLatest.php 修复。这应该使页面再次指向最新版本。这将是我首先尝试的。
如果这不起作用,而您实际上想删除页面,我会尝试 运行 维护脚本 nukePage.php。此脚本允许您永久(!)从数据库中删除页面。之后您可以使用脚本 purgeOldText.php 从文本 table.
中删除未使用的行
但是请注意,您的数据库当前处于不一致状态;虽然我提到的脚本部分是针对崩溃的情况编写的,但不能保证他们可以解决这个问题。
我在主页上遇到了这个错误。如何解决?
http://www.hippomocks.com/Talk:Main_Page
The revision #0 of the page named "Main Page" does not exist.
This is usually caused by following an outdated history link to a page that has been deleted. Details can be found in the deletion log.
Database inconsistencies occur when, for example, primary keys stored in other fields no longer point to a row that exists. This can happen after a database import ends prematurely, for example. In that case, page.page_latest might point to a revision that hasn't been imported, and users trying to read the page might get an error message stating "The revision #0 of the page named '[page name]" does not exist. This is usually caused by following an outdated history link to a page that has been deleted. Details can be found in the deletion log."
维护脚本findAnomalies.php可用于查找缺失的修订。从您服务器上的 CLI,cd
到您的 Mediawiki 目录中的维护目录和 运行 脚本。例如:
cd /var/www/html/wiki/maintenance
php findAnomolies.php
并尝试一些额外的东西
您收到的错误消息听起来像页面 table 中的错误消息,相应页面的条目指向一个不存在的修订版。这可能可以通过 运行 维护脚本 attachLatest.php 修复。这应该使页面再次指向最新版本。这将是我首先尝试的。
如果这不起作用,而您实际上想删除页面,我会尝试 运行 维护脚本 nukePage.php。此脚本允许您永久(!)从数据库中删除页面。之后您可以使用脚本 purgeOldText.php 从文本 table.
中删除未使用的行但是请注意,您的数据库当前处于不一致状态;虽然我提到的脚本部分是针对崩溃的情况编写的,但不能保证他们可以解决这个问题。