https://bugzilla.wikimedia.org/show_bug.cgi?id=19857
Summary: maintenance/deleteRevision.php on last revision breaks
targeted page
Product: MediaWiki
Version: 1.16-svn
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Normal
Component: Maintenance scripts
AssignedTo: [email protected]
ReportedBy: [email protected]
maintenance/deleteRevision.php, when used on the last revision of a page,
'breaks' it: trying to access to it leads to an error message ("database cannot
find article contents").
Cause: maintenance/deleteRevision.php or an underlying function fails to
maintain the page_latest column.
---------
Manual fix after such an incident:
('TITLE' is the article title):
select rev_id,rev_user_text,rev_timestamp,left(rev_comment,60) from
page,revision where rev_page=page_id and page_title='TITLE' order by rev_id
desc limit 1
Check, using the page history, that the revision is the topmost one
Then:
('X' is the rev_id):
update page set page_latest=X where namespace=0 and page_id=;
---------
Note: my MW instance animates a wiki farm, therefore at deleteRevision.php
invocation time a symlink is tied from the adequate file to 'AdminSettings.php'
and the '--conf=' argument is provided along with the adequate filename.
Thx for the great work on MW
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l