After running compressOld.php on MW1.5b2 some older pages won't view anymore with the error msg: "Fatal error: Call to undefined method HistoryBlobStub::uncompress() in W:\www\wiki\includes\HistoryBlob.php on line 242"
Does anybody have an 'uncompress' script or a patch to compressOld? It would spare me a weekend (or two or three or ...) teaching myself enough of PHP and MediaWiki to program my own uncompress patch. This might be a problem though, because I can't find either the 'old' table referenced in the script, nor any other table with the 'gzip' flag set.
Do any of our learned friends on this list know a way to deal with this problem. (I don't mind programming or hacking a bit but I haven't a clue how to continue).
I only care about the 'current' version of these pages if that makes things easier.
Thanks.
Hans Voss wrote:
After running compressOld.php on MW1.5b2 some older pages won't view anymore
First, 1.5beta2 is really old. If you're going to test the beta code, you should be running the latest; try at least beta3, and if you can pull from CVS HEAD.
compressOld.php may or may not work at present even in the current code, however. Actually, judging from a glance at compressOld.inc, I guarantee you it will not work properly. It may or may not do irreparable damage to your database; you may need to restore from the backup you made before running this experimental data-altering script.
with the error msg: "Fatal error: Call to undefined method HistoryBlobStub::uncompress() in W:\www\wiki\includes\HistoryBlob.php on line 242"
This indicates that a HistoryBlubStub has incorrectly referenced another HistoryBlobStub as its source instead of a HistoryBlob.
Possibly caused by the fatal errors and old structure assumptions in compressOld.inc, which should not be used at this time.
-- brion vibber (brion @ pobox.com)
In that case, just for curiosity sake, would it be even possible to write a script that undoes all the compression? (Not that I'm going to try mind you, but I'm just wondering as to the extend of the damage to the database).
On 7/18/05, Brion Vibber brion@pobox.com wrote:
Hans Voss wrote:
After running compressOld.php on MW1.5b2 some older pages won't view anymore
First, 1.5beta2 is really old. If you're going to test the beta code, you should be running the latest; try at least beta3, and if you can pull from CVS HEAD.
compressOld.php may or may not work at present even in the current code, however. Actually, judging from a glance at compressOld.inc, I guarantee you it will not work properly. It may or may not do irreparable damage to your database; you may need to restore from the backup you made before running this experimental data-altering script.
with the error msg: "Fatal error: Call to undefined method HistoryBlobStub::uncompress() in W:\www\wiki\includes\HistoryBlob.php on line 242"
This indicates that a HistoryBlubStub has incorrectly referenced another HistoryBlobStub as its source instead of a HistoryBlob.
Possibly caused by the fatal errors and old structure assumptions in compressOld.inc, which should not be used at this time.
-- brion vibber (brion @ pobox.com)
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Hans Voss wrote:
In that case, just for curiosity sake, would it be even possible to write a script that undoes all the compression? (Not that I'm going to try mind you, but I'm just wondering as to the extend of the damage to the database).
It's certainly possible to undo a legitimate, working compression. :)
I'm not totally sure about the broken stuff, though. It might be possible, or it might not be.
Things to check: * What the consequences of attempting to look at the old table might be * What the consequences of mixing up revision IDs (rev_id) and text IDs (old_id) might be
-- brion vibber (brion @ pobox.com)
mediawiki-l@lists.wikimedia.org