Fatal error: Call to a member function hasContentModel() on null in /www/dev.translatewiki.net/docroot/w/extensions/Thanks/Thanks.hooks.php on line 297
Code in question:
287 /** 288 * Handler for BeforePageDisplay. Inserts javascript to enhance thank 289 * links from static urls to in-page dialogs along with reloading 290 * the previously thanked state. 291 * 292 * @param OutputPage $out OutputPage object 293 * @param Skin $skin 294 * @return bool 295 */ 296 public static function onBeforePageDisplay( OutputPage $out, $skin ) { 297 if ( $out->getTitle()->hasContentModel( 'flow-board' ) ) { 298 $out->addModules( 'ext.thanks.flowthank' ); 299 } 300 return true; 301 }
This happened while running runJobs.php manually (unfortunately not sure which job caused it) . Some context
2015-07-03 07:24:39 TTMServerMessageUpdateJob MediaWiki:wbqev-crosscheck-result-table-header-external-value (id=990875,timestamp=20150703072228) STARTING 2015-07-03 07:24:39 TTMServerMessageUpdateJob MediaWiki:wbqev-crosscheck-result-table-header-external-value (id=990875,timestamp=20150703072228) t=1 good 2015-07-03 07:24:39 MessageGroupStatesUpdaterJob Translations:Project:About/16/en (id=990213,timestamp=20150616173611) STARTING 2015-07-03 07:24:39 MessageGroupStatesUpdaterJob Translations:Project:About/16/en (id=990213,timestamp=20150616173611) t=4 good 2015-07-03 07:24:39 MessageGroupStatesUpdaterJob Translations:Project:About/20/en (id=990197,timestamp=20150616173600) STARTING 2015-07-03 07:24:39 MessageGroupStatesUpdaterJob Translations:Project:About/20/en (id=990197,timestamp=20150616173600) t=4 good 2015-07-03 07:24:39 TranslateRenderJob Project:About/ia user=FuzzyBot flags=16 summary=Updating to match new version of source page (id=989797,timestamp=20150616173435) STARTING 2015-07-03 07:24:40 TranslateRenderJob Project:About/ia user=FuzzyBot flags=16 summary=Updating to match new version of source page (id=989797,timestamp=20150616173435) t=1174 good Fatal error: Call to a member function hasContentModel() on null in /www/dev.translatewiki.net/docroot/w/extensions/Thanks/Thanks.hooks.php on line 297