Page MenuHomePhabricator

Fatal error, undefined method "HistoryBlobStub::uncompress()" when running update.php
Closed, DeclinedPublic

Description

I'm upgrading from 1.18.4 to 1.19.1. When I run update.php, it quits out with this error:

...doing rev_id from 23401 to 23600
...doing rev_id from 23601 to 23800
...doing rev_id from 23801 to 24000
Fatal error: Call to undefined method HistoryBlobStub::uncompress() in /includes/HistoryBlob.php on line 255

Same thing happens if I re-run update.php.


Version: 1.19
Severity: major
Whiteboard: aklapper-moreinfo

Details

Reference
bz37882

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:23 AM
bzimport set Reference to bz37882.
bzimport added a subscriber: Unknown Object (MLST).

This is caused by some glitched revisions from running compressOld.php similar to these issues: http://www.gossamer-threads.com/lists/wiki/mediawiki/28425

"This indicates that a HistoryBlubStub has incorrectly referenced another
HistoryBlobStub as its source instead of a HistoryBlob."

Can some logic be added that checks for this scenario and does something other than just quit out? Spitting out the revision id's would help a lot. My personal solution was to delete these bad revisions and run the update script, but I had to jigger a way to identify all the bad revisions to delete.

Can you drop example of the serialized data? (a database dump or something like that)

Steve: Could you answer comment 2 please?

Unfortunately closing this report as no further information has been provided.

Steve: Please feel free to reopen this report if you can provide the information asked for and if this still happens. Thanks!