Page MenuHomePhabricator

Deleting page fails on 1.34: undefined method OutputPage::addWikiText()
Closed, ResolvedPublic

Description

Trying to delete a page with LinkedWiki enabled on 1.34+ results in an error:

[4f3d35c3a6cbbace21e14ab0] /w/index.php?title=Test1&action=delete Error from line 84 of /vagrant/mediawiki/extensions/LinkedWiki/LinkedWiki.php: Call to undefined method OutputPage::addWikiText()

Backtrace:

#0 /vagrant/mediawiki/includes/Hooks.php(174): LinkedWiki::onArticleDeleteAfterSuccess(Title, OutputPage)
#1 /vagrant/mediawiki/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#2 /vagrant/mediawiki/includes/page/Article.php(2139): Hooks::run(string, array)
#3 /vagrant/mediawiki/includes/page/Article.php(1883): Article->doDelete(string, boolean)
#4 /vagrant/mediawiki/includes/actions/DeleteAction.php(41): Article->delete()
#5 /vagrant/mediawiki/includes/MediaWiki.php(519): DeleteAction->show()
#6 /vagrant/mediawiki/includes/MediaWiki.php(305): MediaWiki->performAction(Article, Title)
#7 /vagrant/mediawiki/includes/MediaWiki.php(972): MediaWiki->performRequest()
#8 /vagrant/mediawiki/includes/MediaWiki.php(535): MediaWiki->main()
#9 /vagrant/mediawiki/index.php(47): MediaWiki->run()
#10 /var/www/w/index.php(5): require(string)
#11 {main}

This method was deprecated in 1.32 and removed in 1.34.