Revision::getText method is deprecated; breaks Preloader in newer MediaWiki
I was trying to configure Preloader on a private MediaWiki instance (version 1.30.1), but kept getting errors whenever creating a page in a namespace where there was a Template.
After hacking at
Preloader.class.php for a while, I isolated it to this line:
return self::transform( $revision->getText() );.
It seems that at some point the
getText method was removed from the
Revision class (per this page it was deprecated in 1.21, but I don't know when it was actually removed).
The migration guide suggests an alternate flow.
I made the suggested changes locally, and now things work as expected. I'll open a PR shortly incorporating these changes.