https://bugzilla.wikimedia.org/show_bug.cgi?id=52613
Web browser: ---
Bug ID: 52613
Summary: Upgrading to 1.21, populateRevisionSha1.php fails to
populate rev_sha1 fields
Product: MediaWiki
Version: 1.21.1
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: Installer
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Mobile Platform: ---
When upgrading from Mediawiki 1.15 to 1.21, running the update.php script
produced the following output:
.....
Populating rev_sha1 column
...doing rev_id from 1 to 200
Data of revision with rev_id=1 unavailable!
Data of revision with rev_id=2 unavailable!
Data of revision with rev_id=3 unavailable!
Data of revision with rev_id=4 unavailable!
Data of revision with rev_id=5 unavailable!
Data of revision with rev_id=6 unavailable!
... and so on for every row in the table.
It looks like a bug where populateRevisionSha1.php calls new Revision( $row ),
and then calls $rev->getSerializedData(), but within the Revision object the
mText field is still null.
I fixed this (I think) by changing Revision.php, line 541 to be
$this->mText = $this->loadText();
avoiding the lazy extraction. And then re-running the script using
php populateRevisionSha1.php --force
--
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