Setup
- MediaWiki 1.31.1 (632c3b6) 16:10, 16 January 2019
- PHP 7.0.32-0ubuntu0.16.04.1 (apache2handler)
- MySQL 5.7.24-0ubuntu0.16.04.1
- Translate 2019.01 rETRA5f8b699bdd80
Issue
When upgrading to the latest version of Translate I get the following fatal:
Fatal error: Uncaught TypeError: Argument 2 passed to TranslateHooks::onPageContentLanguage() must be an instance of Language, string given, called in /../w/includes/Hooks.php on line 177 and defined in /../w/extensions/Translate/TranslateHooks.php:475
Stack Trace
#0 /../w/includes/Hooks.php(177): TranslateHooks::onPageContentLanguage(Object(Title), 'en', Object(LanguageEn)) #1 /../w/includes/Hooks.php(205): Hooks::callHook('PageContentLang...', Array, Array, NULL) #2 /../w/includes/content/ContentHandler.php(671): Hooks::run('PageContentLang...', Array) #3 /../w/includes/content/ContentHandler.php(697): ContentHandler->getPageLanguage(Object(Title), NULL) #4 /../w/includes/Title.php(5032): ContentHandler->getPageViewLanguage(Object(Title)) #5 /../w/includes/skins/SkinTemplate.php(279): Title->getPageViewLanguage() #6 /../w/includes/skins/SkinTemplate.php(464): SkinTemplate->wrap in /../w/extensions/Translate/TranslateHooks.php on line 475